fix a wxASSERT in dialog_keepout_area_properties.cpp
This commit is contained in:
parent
609da9b61d
commit
1ec7fef4a2
|
@ -299,6 +299,7 @@ wxIcon DIALOG_KEEPOUT_AREA_PROPERTIES::makeLayerIcon( COLOR4D aColor )
|
||||||
iconDC.SetBrush( brush );
|
iconDC.SetBrush( brush );
|
||||||
iconDC.DrawRectangle( 0, 0, LAYER_BITMAP_SIZE_X, LAYER_BITMAP_SIZE_Y );
|
iconDC.DrawRectangle( 0, 0, LAYER_BITMAP_SIZE_X, LAYER_BITMAP_SIZE_Y );
|
||||||
|
|
||||||
|
iconDC.SelectObject( wxNullBitmap ); // mandatory before using bitmap data
|
||||||
wxIcon icon;
|
wxIcon icon;
|
||||||
icon.CopyFromBitmap( bitmap );
|
icon.CopyFromBitmap( bitmap );
|
||||||
return icon;
|
return icon;
|
||||||
|
|
Loading…
Reference in New Issue