pcbnew's onrightclick behavior

This commit is contained in:
dickelbeck 2007-10-10 04:53:23 +00:00
parent ed0677b422
commit fbe7a112f8
1 changed files with 3 additions and 3 deletions

View File

@ -185,13 +185,13 @@ void WinEDA_BasePcbFrame::ProcessItemSelection( wxCommandEvent& event )
// index into the collector list: // index into the collector list:
int itemNdx = id - ID_POPUP_PCB_ITEM_SELECTION_START; int itemNdx = id - ID_POPUP_PCB_ITEM_SELECTION_START;
if( (id >= ID_POPUP_PCB_ITEM_SELECTION_START) if( id >= ID_POPUP_PCB_ITEM_SELECTION_START
&& (id <= ID_POPUP_PCB_ITEM_SELECTION_END) ) && id <= ID_POPUP_PCB_ITEM_SELECTION_END )
{ {
BOARD_ITEM* item = (*m_Collector)[itemNdx]; BOARD_ITEM* item = (*m_Collector)[itemNdx];
DrawPanel->m_AbortRequest = false; DrawPanel->m_AbortRequest = false;
#if defined (DEBUG) #if defined (DEBUG) && 0
item->Show( 0, std::cout ); item->Show( 0, std::cout );
#endif #endif