From e64d8e523cbc1063760c0b3e32288f2f92482f40 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Wed, 26 Sep 2007 20:20:39 +0000 Subject: [PATCH] OnLeftClick() test case --- change_log.txt | 1 + pcbnew/edit.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/change_log.txt b/change_log.txt index ee5cbaad13..cfcf441675 100644 --- a/change_log.txt +++ b/change_log.txt @@ -11,6 +11,7 @@ email address. test case for OnLeftClick() handling from a release circumstance. a few simple changes to void WinEDA_DrawPanel::OnMouseEvent( wxMouseEvent& event ), but they affect all programs in a subtle way. + TAB key allow double clicking, but is not needed for block selection. + pcbnew GENERAL_COLLECTOR::GetCount() returns int, not unsigned. Was tired of the diff --git a/pcbnew/edit.cpp b/pcbnew/edit.cpp index 678b935412..644970abf0 100644 --- a/pcbnew/edit.cpp +++ b/pcbnew/edit.cpp @@ -90,8 +90,8 @@ void WinEDA_PcbFrame::OnLeftClick( wxDC* DC, const wxPoint& MousePos ) } } - else /* if( !wxGetKeyState(WXK_SHIFT) && !wxGetKeyState(WXK_ALT) && - !wxGetKeyState(WXK_CONTROL) && !wxGetKeyState(WXK_TAB) ) */ + else if( !wxGetKeyState(WXK_SHIFT) && !wxGetKeyState(WXK_ALT) && + !wxGetKeyState(WXK_CONTROL) && !wxGetKeyState(WXK_TAB) ) { DrawStruct = PcbGeneralLocateAndDisplay(); if( DrawStruct )