Fix uninitialized variable.

This commit is contained in:
Jeff Young 2021-06-12 11:31:36 +01:00
parent 654d910e39
commit be980df1ca
1 changed files with 4 additions and 2 deletions

View File

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