diff --git a/common/widgets/color_swatch.cpp b/common/widgets/color_swatch.cpp index f24f0a0526..87a29e27db 100644 --- a/common/widgets/color_swatch.cpp +++ b/common/widgets/color_swatch.cpp @@ -120,7 +120,8 @@ COLOR_SWATCH::COLOR_SWATCH( wxWindow* aParent, COLOR4D aColor, int aID, COLOR4D m_background( aBackground ), m_default( aDefault ), m_userColors( nullptr ), - m_readOnly( false ) + m_readOnly( false ), + m_supportsOpacity( true ) { wxASSERT_MSG( aSwatchSize != SWATCH_EXPAND, "SWATCH_EXPAND not supported in COLOR_SWATCH" ); @@ -152,7 +153,8 @@ COLOR_SWATCH::COLOR_SWATCH( wxWindow *aParent, wxWindowID aID, const wxPoint &aP const wxSize &aSize, long aStyle ) : wxPanel( aParent, aID, aPos, aSize, aStyle ), m_userColors( nullptr ), - m_readOnly( false ) + m_readOnly( false ), + m_supportsOpacity( true ) { if( aSize == wxDefaultSize ) m_size = ConvertDialogToPixels( SWATCH_SIZE_MEDIUM_DU );