[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 25 18:48:12 UTC 2020


 sw/source/uibase/shells/annotsh.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e2cea687d4275c31b780bfe8307daed552e45da0
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Sep 25 16:23:31 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 25 20:47:25 2020 +0200

    Related: tdf#136985 comment select all adds an undo action to the stack
    
    so ctrl+a in an unmodified document causes the undo toolbar item to
    become active
    
    Change-Id: Ie9fe97d64c89d2ca1cacf2ec89408b9ca6e3b418
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103410
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index f2cc6592df86..71c87569859e 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -576,7 +576,7 @@ void SwAnnotationShell::Exec( SfxRequest &rReq )
     }
 
     tools::Rectangle aOutRect = pOLV->GetOutputArea();
-    if (tools::Rectangle() != aOutRect)
+    if (tools::Rectangle() != aOutRect && aNewAttr.Count())
         pOLV->SetAttribs(aNewAttr);
 
     rView.GetViewFrame()->GetBindings().InvalidateAll(false);


More information about the Libreoffice-commits mailing list