diff options
author | Bakos Attila <bakos.attilakaroly@nisz.hu> | 2020-06-30 15:03:31 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-07-10 14:44:50 +0200 |
commit | b216fc5b583050cfb1cdf9bd82ec3c1bd2e09d70 (patch) | |
tree | eab1bebbba923457c2a57da3db0615514487da9f /writerfilter/source/dmapper/DomainMapper_Impl.hxx | |
parent | bb303e79091f07c7a5b553a4be63fa0034ba2b9c (diff) |
tdf#118701 DOCX import: fix image position on page break
If an image anchored to an empty paragraph only with
section properties, don't remove that paragraph to keep
the image on the page before the page break.
IsLastParaEmpty() tries to move a text cursor over the
empty paragraph marked for deletion. If it contains an
image anchored as a character, the cursor won't reach
the end of the previous paragraph by goLeft(2).
Co-authored-by: Attila Bánhegyi (NISZ)
Change-Id: Ic22c7553948eb06739232d7e35fc49ad14f96518
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97518
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapper_Impl.hxx')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx b/writerfilter/source/dmapper/DomainMapper_Impl.hxx index db0a03fa7792..e145547f3ddd 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.hxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.hxx @@ -626,6 +626,7 @@ public: void RemoveDummyParaForTableInSection(); void AddDummyParaForTableInSection(); + bool IsLastParaEmpty(); void RemoveLastParagraph( ); void SetIsLastParagraphInSection( bool bIsLast ); bool GetIsLastParagraphInSection() const { return m_bIsLastParaInSection;} |