diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-25 20:27:49 +0000 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2021-11-29 05:13:43 +0100 |
commit | e288bd6b0f8eb437ce6830460cf203bf6694272d (patch) | |
tree | f29f4b28e42531e1201907d73221ebe7cdb3b404 /sfx2 | |
parent | 2eefc29b53b01dc07eb62aeb42cd56f178370d1d (diff) |
tdf#145814 fill format mode is mostly disabled
when it shouldn't
Change-Id: Ic282c313a6986d7d08f54b475c5d2ce32098ada1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125911
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 8951cfb71cbf..5a7041f22cbf 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -909,11 +909,8 @@ void SfxCommonTemplateDialog_Impl::SelectStyle(const OUString &rStr, bool bIsCal bWaterDisabled = !IsSafeForWaterCan(); - if (!bIsCallback) - { - // tdf#134598 call UpdateStyleDependents to update watercan - UpdateStyleDependents(); - } + // tdf#134598 call UpdateStyleDependents to update watercan + UpdateStyleDependents(); } OUString SfxCommonTemplateDialog_Impl::GetSelectedEntry() const @@ -1957,9 +1954,6 @@ IMPL_LINK(SfxCommonTemplateDialog_Impl, FmtSelectHdl, weld::TreeView&, rListBox, if (!rListBox.get_cursor(xHdlEntry.get())) return; - if (rListBox.is_selected(*xHdlEntry)) - UpdateStyleDependents(); - SelectStyle(rListBox.get_text(*xHdlEntry), true); } |