[Libreoffice-commits] core.git: sd/source
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Tue Dec 10 13:50:46 UTC 2019
sd/source/ui/func/futext.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 481e686a66e550229ec0b600a785452f0d753342
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Aug 14 18:58:16 2019 +0200
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Dec 10 14:49:58 2019 +0100
Set text field modified on edit in Impress
To avoid not saved changes when user enters text field and then closes
the browser.
Change-Id: Iee06392eedcf8c1875017dbfb55552059f94bba3
Reviewed-on: https://gerrit.libreoffice.org/77504
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/82086
Tested-by: Jenkins
diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx
index 30aa80e08164..3523a5efef69 100644
--- a/sd/source/ui/func/futext.cxx
+++ b/sd/source/ui/func/futext.cxx
@@ -63,6 +63,7 @@
#include <DrawDocShell.hxx>
#include <strings.hrc>
#include <pres.hxx>
+#include <comphelper/lok.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -194,6 +195,8 @@ void FuText::DoExecute( SfxRequest& )
SdrViewEvent aVEvt;
mpView->PickAnything(aMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt);
mpView->MarkObj(aVEvt.pRootObj, pPV);
+ if (comphelper::LibreOfficeKit::isActive() && mpViewShell && mpViewShell->GetDocSh())
+ mpViewShell->GetDocSh()->SetModified();
mxTextObj.reset( dynamic_cast< SdrTextObj* >( aVEvt.pObj ) );
}
More information about the Libreoffice-commits
mailing list