From be980df1ca2b11a6d0e48f985348fc93d5689921 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 12 Jun 2021 11:31:36 +0100 Subject: [PATCH] Fix uninitialized variable. --- common/widgets/color_swatch.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 );