[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - sw/source
Jan Holesovsky
kendy at collabora.com
Wed May 17 15:51:08 UTC 2017
sw/source/uibase/shells/textfld.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit aa192623ef75e62f03c5177dc42ec28f4b80e745
Author: Jan Holesovsky <kendy at collabora.com>
Date: Wed May 17 17:31:58 2017 +0200
lok: Update state of undo after a comment modification.
Change-Id: Ibb6a902f928b951bd480e32cb1f91d100420dccb
Reviewed-on: https://gerrit.libreoffice.org/37725
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx
index 3ef89aa6cd21..79863dd95dd9 100644
--- a/sw/source/uibase/shells/textfld.cxx
+++ b/sw/source/uibase/shells/textfld.cxx
@@ -490,7 +490,12 @@ void SwTextShell::ExecField(SfxRequest &rReq)
sw::annotation::SwAnnotationWin* pAnnotationWin = GetView().GetPostItMgr()->GetAnnotationWin(pIdItem->GetValue().toUInt32());
if (pAnnotationWin)
+ {
pAnnotationWin->UpdateText(sText);
+
+ // explicit state update to get the Undo state right
+ GetView().AttrChangedNotify(GetShellPtr());
+ }
}
}
break;
More information about the Libreoffice-commits
mailing list