sw/source/uibase/shells/textfld.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 24a3a9c41a3e51f6b37831568ba968a4f69e72b7
Author: Jan Holesovsky <ke...@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/37726
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>
    Tested-by: Jenkins <c...@libreoffice.org>

diff --git a/sw/source/uibase/shells/textfld.cxx 
b/sw/source/uibase/shells/textfld.cxx
index ca6d848d9b1c..12cf61076926 100644
--- a/sw/source/uibase/shells/textfld.cxx
+++ b/sw/source/uibase/shells/textfld.cxx
@@ -488,7 +488,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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to