Fix uninitialized variable.
This commit is contained in:
parent
654d910e39
commit
be980df1ca
|
@ -120,7 +120,8 @@ COLOR_SWATCH::COLOR_SWATCH( wxWindow* aParent, COLOR4D aColor, int aID, COLOR4D
|
||||||
m_background( aBackground ),
|
m_background( aBackground ),
|
||||||
m_default( aDefault ),
|
m_default( aDefault ),
|
||||||
m_userColors( nullptr ),
|
m_userColors( nullptr ),
|
||||||
m_readOnly( false )
|
m_readOnly( false ),
|
||||||
|
m_supportsOpacity( true )
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( aSwatchSize != SWATCH_EXPAND, "SWATCH_EXPAND not supported in COLOR_SWATCH" );
|
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 ) :
|
const wxSize &aSize, long aStyle ) :
|
||||||
wxPanel( aParent, aID, aPos, aSize, aStyle ),
|
wxPanel( aParent, aID, aPos, aSize, aStyle ),
|
||||||
m_userColors( nullptr ),
|
m_userColors( nullptr ),
|
||||||
m_readOnly( false )
|
m_readOnly( false ),
|
||||||
|
m_supportsOpacity( true )
|
||||||
{
|
{
|
||||||
if( aSize == wxDefaultSize )
|
if( aSize == wxDefaultSize )
|
||||||
m_size = ConvertDialogToPixels( SWATCH_SIZE_MEDIUM_DU );
|
m_size = ConvertDialogToPixels( SWATCH_SIZE_MEDIUM_DU );
|
||||||
|
|
Loading…
Reference in New Issue