Fix a compil warning.

This commit is contained in:
jean-pierre charras 2019-06-16 09:12:32 +02:00
parent 552815d486
commit 6a8e69f9c9
1 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,7 @@
// Drawing tool actions // Drawing tool actions
TOOL_ACTION EE_ACTIONS::placeSymbolPin( "eeschema.SymbolDrawing.placeSymbolPin", TOOL_ACTION EE_ACTIONS::placeSymbolPin( "eeschema.SymbolDrawing.placeSymbolPin",
AS_GLOBAL, AS_GLOBAL,
'P', LEGACY_HK_NAME( "Create Pin" ), 'P', LEGACY_HK_NAME( "Create Pin" ),
_( "Add Pin" ), _( "Add a pin" ), _( "Add Pin" ), _( "Add a pin" ),
pin_xpm, AF_ACTIVATE ); pin_xpm, AF_ACTIVATE );
@ -357,8 +357,11 @@ int LIB_DRAWING_TOOLS::DrawShape( const TOOL_EVENT& aEvent )
case LIB_CIRCLE_T: item = new LIB_CIRCLE( part ); break; case LIB_CIRCLE_T: item = new LIB_CIRCLE( part ); break;
case LIB_POLYLINE_T: item = new LIB_POLYLINE( part ); break; case LIB_POLYLINE_T: item = new LIB_POLYLINE( part ); break;
case LIB_RECTANGLE_T: item = new LIB_RECTANGLE( part ); break; case LIB_RECTANGLE_T: item = new LIB_RECTANGLE( part ); break;
default: break; // keep compiler quiet
} }
wxASSERT( item );
item->SetWidth( LIB_EDIT_FRAME::g_LastLineWidth ); item->SetWidth( LIB_EDIT_FRAME::g_LastLineWidth );
item->SetFillMode( LIB_EDIT_FRAME::g_LastFillStyle ); item->SetFillMode( LIB_EDIT_FRAME::g_LastFillStyle );
item->SetFlags( IS_NEW ); item->SetFlags( IS_NEW );