summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-25 16:23:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-25 20:47:25 +0200
commite2cea687d4275c31b780bfe8307daed552e45da0 (patch)
treebb374170950d01512c44503d280d6e8e6c854a6d /sw
parent4eb816de71f1310a3a5d9803f7355849e6273439 (diff)
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@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/annotsh.cxx2
1 files changed, 1 insertions, 1 deletions
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);