From e2cea687d4275c31b780bfe8307daed552e45da0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 25 Sep 2020 16:23:31 +0100 Subject: Related: tdf#136985 comment select all adds an undo action to the stack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- sw/source/uibase/shells/annotsh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') 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); -- cgit