svx/source/sidebar/area/AreaPropertyPanelBase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ae438bda3d5a0c9c9f2ed0e71104698bd2d8793d Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Dec 16 12:15:55 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Dec 16 19:43:10 2022 +0000 pSh cannot be null here, checked at the start of method Change-Id: Ia6b8599c7ff185d5beecf6572c0df353320d8ebb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144338 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx index b11f61d775eb..5bd9eb46c8f8 100644 --- a/svx/source/sidebar/area/AreaPropertyPanelBase.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanelBase.cxx @@ -487,7 +487,7 @@ void AreaPropertyPanelBase::FillStyleChanged(bool bUpdateModel) } else { - if (pSh && pSh->GetItem(SID_GRADIENT_LIST)) + if (pSh->GetItem(SID_GRADIENT_LIST)) { SvxFillAttrBox::Fill(*mxLbFillAttr, pSh->GetItem(SID_GRADIENT_LIST)->GetGradientList());