summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-16 12:19:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-16 20:32:50 +0200
commitde075c0f38a5888b54742b6a95b91d41a443978d (patch)
treec7ddf7955ba2f2113618b2c3416d8765f33560aa /chart2
parent71c10fcd14e35cea25641db9c2fd063fd8f8956f (diff)
cid#1448478 Dereference befoew null check
Change-Id: Ia73e6d02d8a8b06012f207820d0d579cfc08c541 Reviewed-on: https://gerrit.libreoffice.org/75718 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
index b52cbfb0d774..35ce20a932fe 100644
--- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
+++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.cxx
@@ -471,10 +471,7 @@ IMPL_LINK(ThreeD_SceneIllumination_TabPage, ClickLightSourceButtonHdl, weld::But
}
//update color list box
- if(pInfo)
- {
- lcl_selectColor( *m_xLB_LightSource, pInfo->aLightSource.nDiffuseColor );
- }
+ lcl_selectColor( *m_xLB_LightSource, pInfo->aLightSource.nDiffuseColor );
updatePreview();
}