office-gobmx/sw/CppunitTest_sw_core_draw.mk
Miklos Vajna da4f9b77a6 tdf#135149 sw: fix deleting textbox of as-char shapes
Regression from 7596e26fd2 (Add
SwTextBoxHelper::findShapes, 2014-06-24), the problem was that in case
the shape is as-char anchored, then DeleteSelection() returns false, and
so the textboxes of the deleted shapes are not deleted.

There is no real reason why deletion should be conditional on the
DeleteSelection() result, so just move it outside that block, so
textboxes are always deleted.

Change-Id: Ib3bd444e9e96f9de0f68a9162ab39255ec5a6807
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102198
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-09-08 09:11:24 +02:00

74 lines
1.8 KiB
Makefile

# -*- 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,sw_core_draw))
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_core_draw))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_core_draw, \
sw/qa/core/draw/draw \
))
$(eval $(call gb_CppunitTest_use_libraries,sw_core_draw, \
comphelper \
cppu \
cppuhelper \
sal \
sfx \
svxcore \
sw \
swqahelper \
test \
unotest \
utl \
vcl \
svt \
tl \
svl \
))
$(eval $(call gb_CppunitTest_use_externals,sw_core_draw,\
boost_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_set_include,sw_core_draw,\
-I$(SRCDIR)/sw/inc \
-I$(SRCDIR)/sw/source/core/inc \
-I$(SRCDIR)/sw/source/uibase/inc \
-I$(SRCDIR)/sw/qa/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_api,sw_core_draw,\
udkapi \
offapi \
oovbaapi \
))
$(eval $(call gb_CppunitTest_use_ure,sw_core_draw))
$(eval $(call gb_CppunitTest_use_vcl,sw_core_draw))
$(eval $(call gb_CppunitTest_use_rdb,sw_core_draw,services))
$(eval $(call gb_CppunitTest_use_custom_headers,sw_core_draw,\
officecfg/registry \
))
$(eval $(call gb_CppunitTest_use_configuration,sw_core_draw))
$(eval $(call gb_CppunitTest_use_uiconfigs,sw_core_draw, \
modules/swriter \
))
$(eval $(call gb_CppunitTest_use_more_fonts,sw_core_draw))
# vim: set noet sw=4 ts=4: