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:
Justin Luth
2026-10-07 13:20:15 +02:00
parent b1df3b5b7a
commit 72d2a706a3
+1 -1
View File
@@ -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();
}