c5ac0ffae4
Regression from commit 6d8da2b2de
(tdf#96943 sw Hide Whitespace: don't create pages for widow / orphan
..., 2016-01-07), the reduced bugdoc has 3 paragraphs, 1.5 paragraphs
are on page 1, 1.5 paragraphs are on page 2. Hiding whitespace moves the
entire paragraph 2 to page 1, which is unexpected.
Checking the original use-case, the
CheckPageHeightValidForHideWhitespace() call in
SwTextFrameBreak::IsInside() can be removed, and still the original
"type character at the end of the document results in a new, unwanted
page" problem is not back. Likely at some point in the meantime we gave
up on these reduced page heights for the last page, so the original
tweak for widow/orphan lines is not needed anymore.
Fix the problem reverting the original, no longer needed fix, but
keeping its testTdf96943 test in the CppunitTest_sw_uiwriter4 suite.
Such reducing of last page doesn't happen with Word 2021, so probably
this change in behavior is wanted.
Change-Id: I5d46d0cd84d0071ffb9ef3f8e4ca7335e61bb226
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164408
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
83 lines
2 KiB
Makefile
83 lines
2 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_text))
|
|
|
|
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_core_text))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,sw_core_text, \
|
|
sw/qa/core/text/frmform \
|
|
sw/qa/core/text/itratr \
|
|
sw/qa/core/text/itrform2 \
|
|
sw/qa/core/text/porlay \
|
|
sw/qa/core/text/porrst \
|
|
sw/qa/core/text/text \
|
|
sw/qa/core/text/widorp \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,sw_core_text, \
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
editeng \
|
|
sal \
|
|
sfx \
|
|
subsequenttest \
|
|
svl \
|
|
sw \
|
|
swqahelper \
|
|
test \
|
|
tl \
|
|
unotest \
|
|
utl \
|
|
vcl \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_externals,sw_core_text,\
|
|
boost_headers \
|
|
libxml2 \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_set_include,sw_core_text,\
|
|
-I$(SRCDIR)/sw/inc \
|
|
-I$(SRCDIR)/sw/source/core/inc \
|
|
-I$(SRCDIR)/sw/source/core/text \
|
|
-I$(SRCDIR)/sw/source/uibase/inc \
|
|
-I$(SRCDIR)/sw/qa/inc \
|
|
$$(INCLUDE) \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_api,sw_core_text,\
|
|
udkapi \
|
|
offapi \
|
|
oovbaapi \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_ure,sw_core_text))
|
|
$(eval $(call gb_CppunitTest_use_vcl,sw_core_text))
|
|
|
|
$(eval $(call gb_CppunitTest_use_rdb,sw_core_text,services))
|
|
|
|
$(eval $(call gb_CppunitTest_use_custom_headers,sw_core_text,\
|
|
officecfg/registry \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_configuration,sw_core_text))
|
|
|
|
$(eval $(call gb_CppunitTest_use_uiconfigs,sw_core_text, \
|
|
modules/swriter \
|
|
sfx \
|
|
svt \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_more_fonts,sw_core_text))
|
|
|
|
# vim: set noet sw=4 ts=4:
|