fix bad class_pcb.cpp file

This commit is contained in:
jean-pierre charras 2010-10-28 21:50:12 +02:00
parent ab0216f111
commit d44521fe6f
2 changed files with 6 additions and 19 deletions

View File

@ -212,13 +212,7 @@ void D_PAD::Copy( D_PAD* source )
/** Virtual function GetClearance
* returns the clearance in internal units. If \a aItem is not NULL then the
* returned clearance is the greater of this object's clearance and
* aItem's clearance. If \a aItem is NULL, then this objects
<<<<<<< TREE
* clearance is returned.
=======
* clearance
* is returned.
>>>>>>> MERGE-SOURCE
* aItem's clearance. If \a aItem is NULL, then this object clearance is returned.
* @param aItem is another BOARD_CONNECTED_ITEM or NULL
* @return int - the clearance in internal units.
*/
@ -234,17 +228,10 @@ int D_PAD::GetClearance( BOARD_CONNECTED_ITEM* aItem ) const
clearance = ( (MODULE*) GetParent() )->m_LocalClearance;
}
<<<<<<< TREE
if( clearance == 0 ) // If the parent footprint clearance value = 0, use NETCLASS value
return BOARD_CONNECTED_ITEM::GetClearance( aItem );
// We have a specific clearance
=======
if( clearance == 0 ) // If the parent footprint clearance value = 0, use NETCLASS value
return BOARD_CONNECTED_ITEM::GetClearance( aItem );
// We have a specific clearance.
>>>>>>> MERGE-SOURCE
// if aItem, return the biggest clearance
if( aItem )
{

View File

@ -336,7 +336,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
*/
/* Zoom In */
text = AddHotkeyName( _( "Zoom In" ), s_Pcbnew_Editor_Hokeys_Descr,
HK_ZOOM_IN );
HK_ZOOM_IN, false );
item = new wxMenuItem( viewMenu, ID_ZOOM_IN, text,
HELP_ZOOM_IN, wxITEM_NORMAL );
item->SetBitmap( zoom_in_xpm );
@ -344,7 +344,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
/* Zoom Out */
text = AddHotkeyName( _( "Zoom Out" ), s_Pcbnew_Editor_Hokeys_Descr,
HK_ZOOM_OUT );
HK_ZOOM_OUT, false );
item = new wxMenuItem( viewMenu, ID_ZOOM_OUT, text,
HELP_ZOOM_OUT, wxITEM_NORMAL );
@ -376,7 +376,6 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
viewMenu->AppendSeparator();
/* 3D Display */
wxMenu* Display3DMenu = new wxMenu;
item = new wxMenuItem( viewMenu, ID_MENU_PCB_SHOW_3D_FRAME,
_( "3D Display" ),
_( "Show board in 3D viewer" ) );
@ -429,7 +428,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
item->SetBitmap( add_text_xpm );
placeMenu->Append( item );
/* Graphics submenu */
/* Graphics submenu */
wxMenu *graphicsSubMenu = new wxMenu;
/* Graphic Arc */
@ -469,7 +468,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
/* Layer alignment target */
item = new wxMenuItem( placeMenu, ID_PCB_MIRE_BUTT,
_( "Layer alignment target" ),
_( "Place a layer alignment target" ));
_( "Place a layer alignment target" ));
item->SetBitmap( add_mires_xpm );
placeMenu->Append( item );
@ -477,6 +476,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
item = new wxMenuItem( placeMenu, ID_PCB_PLACE_OFFSET_COORD_BUTT,
_( "Drill and Place Offset" ),
_( "Place the offset adjust for drill and place files" ));
item->SetBitmap( pcb_offset_xpm );
placeMenu->Append( item );
/* Grid Origin */