diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2023-06-13 08:15:34 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-06-13 09:01:08 +0200 |
commit | c374628126ad222be48d5d06857b7dc6b879f783 (patch) | |
tree | 0963830eabd8f1cf42f4d182013de718682c2115 /basegfx/source/polygon/b2dpolygonclipper.cxx | |
parent | 2137d04d1ddb80691c29de0df99fc2ba58820ce0 (diff) |
sw floattable: fix anchor position of inner floating table
The bugdoc has an outer, split floating table and an inner, non-split
floating table. The anchor of the inner table was wrong: both were
anchored in the only paragraph in the body text, while the inner
floating table should be anchored inside the outer floating table.
The reason for this is commit 9592f56323de27f9e1d890ee6259a5f4f328cbd3
(n#695479 fix anchor handling in SwXText::convertToTextFrame(),
2012-02-20), which was necessary to make sure that old-style frames
after each other are all anchored to the body text, not inside each
other.
Fix the problem by leaving the behavior unchanged for empty paragraphs,
but at least when the inner anchor is to-para, the last paragraph of a fly
content is non-empty and the outer fly range contains the entire last
paragraph, then consider such a fly as "inside" the outer fly content,
rather than something that has to be moved so the anchor is still in the
body text.
CppunitTest_sw_rtfimport's testN695479, CppunitTest_sw_ooxmlexport10's
testFloatingTablesAnchor and CppunitTest_sw_ooxmlexport13's testFlyInFly
are all related tests and they continue to work after this change.
Change-Id: I30ed1d884ec465e724b4f133640b9608845a44fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152950
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'basegfx/source/polygon/b2dpolygonclipper.cxx')
0 files changed, 0 insertions, 0 deletions