diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-10-10 20:38:40 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-10-25 21:08:12 +0200 |
commit | 475e698826e2103bdc78ac286e1fc8970363638e (patch) | |
tree | ad83d9122572613c7b6be72c0d1f9d6c41aad7bb /svtools/source/svhtml/htmlkywd.cxx | |
parent | Fix StartWritingUnicodeText (diff) | |
download | core-475e698826e2103bdc78ac286e1fc8970363638e.tar.gz core-475e698826e2103bdc78ac286e1fc8970363638e.zip |
tdf#151060 sw PDF export: don't paint off-page part of drawing object
Reported to be a regression from
c12358166a9bd88fe10feabca45a6ad3f65dff8e (DOCX import: fix lost objects
anchored to an empty linked header, 2020-01-10), the 3rd page of the PDF
export result contains an unexpected line shape.
This was "working" before as all objects anchored to the empty header
were lost.
Fix the problem by clipping the rendering to the page frame when
handling shapes, similar to what
689cead9e0837dc932e3a4cd765f7d319b529018 (tdf#91260 svx, sw: don't paint
off-page part of drawing object, 2016-12-06) did to fix the normal
rendering of the document.
The testcase document just has 2 pages, so there the unexpected shape
was on the 2nd page.
Change-Id: Ica24cd15717a1ee97dff448d385a10536671103e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141167
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit bab44a97d21d0ac8a8a06678e71024c1a830943f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141180
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svtools/source/svhtml/htmlkywd.cxx')
0 files changed, 0 insertions, 0 deletions