diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2024-09-03 08:17:23 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-09-03 09:53:17 +0200 |
commit | 5b0256f30ee154edb28b999bc4faba2453fc32b8 (patch) | |
tree | 5c5d353965c1eb2edb78e9d4d5c930167eea6d5c /sc/uiconfig/scalc | |
parent | 0036a8c05cd160c66121a5c630cfadcb2cfec54a (diff) |
tdf#162507 sw floattable: fix not wanted join of two different split anchors
Open the bugdoc, go to the end of the "Cannot press Delete here"
paragraph, press delete, layout hangs.
The trouble seems to be that this creates a doc model where multiple
multi-page floating tables are anchored to the same paragraph, which is
not something the layout supports. We explicitly avoid this at import
time from DOCX since commit 01ad8ec4bb5425446e95dbada81de435646824b4 (sw
floattable: fix lost tables around a floating table from DOCX,
2023-06-05), but there was no mechanism to prevent the UI creating the
same unsupported doc model.
Fix the problem by extending SwWrtShell::DelRight() to prevent joining 2
paragraphs in the unwanted case, interesting Word doesn't allow deleting
at the end of that paragraph, either.
Regression from commit 693ad3aadbf84afa750af73c330fe7e09b38a2e7
(tdf#120262 sw floattable, legacy: go outside body only for page frame
vert pos, 2023-07-31), which restricted the amount of cases where some
weird legacy behavior was performed, so good to keep that side as-is.
Change-Id: I4d8a6702d8ac1689690fa464014c99fcd5ef7bd2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172780
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/uiconfig/scalc')
0 files changed, 0 insertions, 0 deletions