Kaydet (Commit) 4e388f8b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1241102 Uninitialized pointer field

Change-Id: I10580e92da47b97d8d496366833e79a89cbd9260
üst f6a6f240
...@@ -34,6 +34,7 @@ PaletteManager::PaletteManager() : ...@@ -34,6 +34,7 @@ PaletteManager::PaletteManager() :
mnNumOfPalettes(2), mnNumOfPalettes(2),
mnCurrentPalette(0), mnCurrentPalette(0),
mnColorCount(0), mnColorCount(0),
mpBtnUpdater(NULL),
mLastColor(COL_AUTO) mLastColor(COL_AUTO)
{ {
LoadPalettes(); LoadPalettes();
...@@ -201,7 +202,8 @@ void PaletteManager::PopupColorPicker(const OUString& aCommand) ...@@ -201,7 +202,8 @@ void PaletteManager::PopupColorPicker(const OUString& aCommand)
aColorDlg.SetMode( svtools::ColorPickerMode_MODIFY ); aColorDlg.SetMode( svtools::ColorPickerMode_MODIFY );
if( aColorDlg.Execute() == RET_OK ) if( aColorDlg.Execute() == RET_OK )
{ {
mpBtnUpdater->Update( aColorDlg.GetColor() ); if (mpBtnUpdater)
mpBtnUpdater->Update( aColorDlg.GetColor() );
mLastColor = aColorDlg.GetColor(); mLastColor = aColorDlg.GetColor();
AddRecentColor( mLastColor ); AddRecentColor( mLastColor );
DispatchColorCommand(aCommand, mLastColor); DispatchColorCommand(aCommand, mLastColor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment