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

New commits:
commit e2cea687d4275c31b780bfe8307daed552e45da0
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Sep 25 16:23:31 2020 +0100
Commit:     Caolán McNamara <caol...@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 <caol...@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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to