Browse Source

Properties: Set flag to prevent clobbering layer color swatch

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13020
7.0
Jon Evans 3 years ago
parent
commit
458935bb5a
  1. 1
      include/properties/pg_properties.h

1
include/properties/pg_properties.h

@ -126,6 +126,7 @@ public:
wxEnumProperty( aLabel, aName, const_cast<wxPGChoices&>( aChoices ), aValue ),
m_colorFunc( []( const wxString& aChoice ) { return wxNullColour; } )
{
SetFlag( wxPG_PROP_CUSTOMIMAGE );
}
wxSize OnMeasureImage( int aItem = -1 ) const override;

Loading…
Cancel
Save