Properties: Set flag to prevent clobbering layer color swatch

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13020
This commit is contained in:
Jon Evans 2022-11-29 18:37:29 -05:00
parent 41ca2789a6
commit 458935bb5a
1 changed files with 1 additions and 0 deletions

View File

@ -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;