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

@ -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_POLYLINE_T: item = new LIB_POLYLINE( 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->SetFillMode( LIB_EDIT_FRAME::g_LastFillStyle );
item->SetFlags( IS_NEW );