--- kicad/common/drawpanel.cpp 2010-08-13 15:15:02.000000000 +0200 +++ kicad_new/common/drawpanel.cpp 2010-08-13 15:04:14.000000000 +0200 @@ -1147,7 +1164,7 @@ void WinEDA_DrawPanel::OnMouseEvent( wxM s_IgnoreNextLeftButtonRelease = false; } - if( event.ButtonUp( 2 ) + if( event.ButtonUp( wxMOUSE_BTN_MIDDLE ) && (screen->m_BlockLocate.m_State == STATE_NO_BLOCK) ) { // The middle button has been released, with no block command: @@ -1250,7 +1267,7 @@ void WinEDA_DrawPanel::OnMouseEvent( wxM } } - if( event.ButtonUp( 1 ) || event.ButtonUp( 2 ) ) + if( event.ButtonUp( wxMOUSE_BTN_LEFT ) || event.ButtonUp( wxMOUSE_BTN_MIDDLE ) ) { /* Release the mouse button: end of block. * The command can finish (DELETE) or have a next command (MOVE,