tdf#173510 svx: prevent a third crash when table style deselected
This fixes a 26.8 regression from
commit 4fb31ea85f.
It looks like it was a mistake to not include it here in the first place,
but doubly so when a table style is deselected (via Ctrl-click).
In that case, if the user pressed the edit button,
LibreOffice would crash because of an attempted -1 index access.
Change-Id: I98038dad3693fba26d17022bec75bd201340c1cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211923
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
This commit is contained in:
@@ -161,6 +161,7 @@ void SvxTableAutoFmtDlg::UpdateUIState()
|
||||
const bool bCanModify = mnIndex != DEFAULT_STYLE && mnIndex < mpFormat.size();
|
||||
mxBtnRename->set_sensitive(bCanModify);
|
||||
mxBtnRemove->set_sensitive(bCanModify);
|
||||
mxBtnEdit->set_sensitive(bCanModify);
|
||||
}
|
||||
|
||||
void SvxTableAutoFmtDlg::UpdateChecks()
|
||||
|
||||
Reference in New Issue
Block a user