sw/source/uibase/shells/annotsh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fdcbf9b65e8ebffde270bf0a5486f1505bd58e26 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Sep 25 16:23:31 2020 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Mon Sep 28 17:03:59 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/+/103342 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx index 0c81d1d00009..ccc7b10e3428 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