tdf#152636 writerfilter: correctly detect first para in doc
commitb3ddc707c3262f0a8ecd46af9efaea8382be22df
authorJustin Luth <justin.luth@collabora.com>
Thu, 22 Dec 2022 21:18:24 +0000 (22 16:18 -0500)
committerMichael Stahl <michael.stahl@allotropia.de>
Thu, 5 Jan 2023 10:19:26 +0000 (5 10:19 +0000)
tree53911158161688432222d81f2fc0c730a805c186
parent616abb746ebd7d42f9c532b0ead137bb58ee7feb
tdf#152636 writerfilter: correctly detect first para in doc

This fixes LO 7.5 regression c37f62b71fa59917ef85ff98480dff18aa936e41.

It could be triggered if the second paragraph or table already
had a new page style assigned to it.

Change-Id: I5ad78c37ad6a388f7321e021250e11d22fc6e3fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144777
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
(cherry picked from commit 3963c693895779d4fba6c94b4ab1df70f9830207)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144733
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
sw/qa/extras/ooxmlexport/data/tdf152636_lostPageBreak.odt [new file with mode: 0644]
sw/qa/extras/ooxmlexport/ooxmlexport18.cxx
sw/source/filter/ww8/ww8atr.cxx