tdf#173510 sc: prevent crash when table style deselected
This fixes a 26.8 regression from
commit 4fb31ea85f.
Format - AutoFormat Styles and Ctrl-click to de-select the style.
Change-Id: I94961ec11932d76fc945fbb11031f22174111459
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211929
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
This commit is contained in:
@@ -286,7 +286,7 @@ IMPL_LINK_NOARG(SvxTableAutoFmtDlg, SelFormatHdl, weld::ItemView&, void)
|
||||
|
||||
OUString SvxTableAutoFmtDlg::GetCurrFormatName()
|
||||
{
|
||||
const SvxAutoFormatData* pData = mpFormat.GetData(mnIndex);
|
||||
const SvxAutoFormatData* pData = lcl_GetTableAutoFormat(mnIndex, mpFormat);
|
||||
return pData ? pData->GetName() : OUString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user