diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-11-06 10:39:16 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2019-11-06 11:57:35 +0100 |
commit | cb1183510c605a5d63fdc9fec6735ac5e8db92ce (patch) | |
tree | baa63070e7dcd3f173096e60c087c3dc7295b4fe /sw | |
parent | 8cdf166552aea7cb3dbdc183b76b5457c6651cf7 (diff) |
tdf#128593 fix crash on setting table background color
Change-Id: I9596cd9817d63590f07ffd2068e79b2df5806aeb
Reviewed-on: https://gerrit.libreoffice.org/82128
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/shells/basesh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index bb9f4a975297..e65149b15995 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -2345,7 +2345,7 @@ void SwBaseShell::ExecBckCol(SfxRequest& rReq) aBrushItem->SetGraphicPos(GPOS_NONE); - sal_uInt16 nSlotId = SID_BACKGROUND_COLOR ? SID_BACKGROUND_COLOR : SID_TABLE_CELL_BACKGROUND_COLOR; + sal_uInt16 nSlotId = (nSlot == SID_BACKGROUND_COLOR) ? SID_BACKGROUND_COLOR : SID_TABLE_CELL_BACKGROUND_COLOR; if (pArgs && SfxItemState::SET == pArgs->GetItemState(SID_ATTR_COLOR_STR, false, &pColorStringItem)) { OUString sColor = static_cast<const SfxStringItem*>(pColorStringItem)->GetValue(); |