sfx2/source/dialog/templdlg.cxx |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

New commits:
commit e288bd6b0f8eb437ce6830460cf203bf6694272d
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Nov 25 20:27:49 2021 +0000
Commit:     Adolfo Jayme Barrientos <[email protected]>
CommitDate: Mon Nov 29 05:13:43 2021 +0100

    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 <[email protected]>

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);
 }
 

Reply via email to