diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-06-05 16:28:53 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-06-06 13:36:08 +0200 |
commit | 79dbe90d5efce44881a82161cf91a63fdef5d109 (patch) | |
tree | 72769108abf008bea415ebbc4bf56daf9d77ba9a /sd/CppunitTest_sd_uiimpress.mk | |
parent | Add GtkImage ids (diff) | |
download | core-79dbe90d5efce44881a82161cf91a63fdef5d109.tar.gz core-79dbe90d5efce44881a82161cf91a63fdef5d109.zip |
tdf#111522 svx: fix crash with view1 doing text edit and view2 doing sdr undo
If one view has an active text edit, then current code doesn't handle
manipulating the undo text outside the text edit, so avoid problems by
simply not adding an undo action to the undo stack for shape creation or
move.
Other actions might want to do the same in the future: check for
CanDoSdrUndo() before calling SdrUndoFactory member functions.
[ Found no existing test suite similar to CppunitTest_sw_uiwriter, so
added one. ]
(cherry picked from commit 3a874f1c80c37e8b35666e1d73161ff762eb7e4c)
Change-Id: I3a364bf4fe6f9b0c13aa07283681b1045368cf7a
Reviewed-on: https://gerrit.libreoffice.org/73594
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sd/CppunitTest_sd_uiimpress.mk')
-rw-r--r-- | sd/CppunitTest_sd_uiimpress.mk | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/sd/CppunitTest_sd_uiimpress.mk b/sd/CppunitTest_sd_uiimpress.mk new file mode 100644 index 000000000000..7881d15d2ef8 --- /dev/null +++ b/sd/CppunitTest_sd_uiimpress.mk @@ -0,0 +1,84 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +#************************************************************************* +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +#************************************************************************* + +$(eval $(call gb_CppunitTest_CppunitTest,sd_uiimpress)) + +$(eval $(call gb_CppunitTest_use_externals,sd_uiimpress,\ + boost_headers \ + libxml2 \ +)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sd_uiimpress, \ + sd/qa/unit/uiimpress \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sd_uiimpress, \ + $(call gb_Helper_optional,AVMEDIA,avmedia) \ + basegfx \ + canvastools \ + comphelper \ + cppcanvas \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + i18nutil \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sb \ + sd \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tl \ + tk \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ +)) + +$(eval $(call gb_CppunitTest_set_include,sd_uiimpress,\ + -I$(SRCDIR)/sd/inc \ + -I$(SRCDIR)/sd/source/ui/inc \ + -I$(SRCDIR)/sd/source/ui/slidesorter/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_sdk_api,sd_uiimpress)) + +$(eval $(call gb_CppunitTest_use_externals,sd_uiimpress,\ + boost_headers \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sd_uiimpress)) +$(eval $(call gb_CppunitTest_use_vcl,sd_uiimpress)) + +$(eval $(call gb_CppunitTest_use_rdb,sd_uiimpress,services)) + +$(eval $(call gb_CppunitTest_use_custom_headers,sd_uiimpress,\ + officecfg/registry \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sd_uiimpress)) + +# vim: set noet sw=4 ts=4: |