fix a wxASSERT in dialog_keepout_area_properties.cpp

This commit is contained in:
jean-pierre charras 2017-10-16 13:58:16 +02:00
parent 609da9b61d
commit 1ec7fef4a2
1 changed files with 1 additions and 0 deletions

View File

@ -299,6 +299,7 @@ wxIcon DIALOG_KEEPOUT_AREA_PROPERTIES::makeLayerIcon( COLOR4D aColor )
iconDC.SetBrush( brush );
iconDC.DrawRectangle( 0, 0, LAYER_BITMAP_SIZE_X, LAYER_BITMAP_SIZE_Y );
iconDC.SelectObject( wxNullBitmap ); // mandatory before using bitmap data
wxIcon icon;
icon.CopyFromBitmap( bitmap );
return icon;