sw/qa/extras/ww8export/data/tdf36711_inlineFrames.doc |binary sw/qa/extras/ww8export/ww8export.cxx | 5 +++++ sw/source/filter/ww8/ww8par6.cxx | 5 +++++ 3 files changed, 10 insertions(+)
New commits: commit 5bdff09d5e7026c8176d11abfa164b1c44bf4222 Author: Justin Luth <jl...@mail.com> AuthorDate: Sat May 27 20:17:44 2023 -0400 Commit: Justin Luth <jl...@mail.com> CommitDate: Mon May 29 17:08:50 2023 +0200 tdf#36711 doc import: special case when DyaAbs is zero One existing unit test found, but the frame was non-functional. Noted in an earlier patchset. make CppunitTest_sw_ww8export CPPUNIT_TEST_NAME=testTdf36711_inlineFrames Change-Id: I9bc4064b6564b327614e44112304adef59490078 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152346 Reviewed-by: Justin Luth <jl...@mail.com> Tested-by: Jenkins diff --git a/sw/qa/extras/ww8export/data/tdf36711_inlineFrames.doc b/sw/qa/extras/ww8export/data/tdf36711_inlineFrames.doc new file mode 100644 index 000000000000..80a7d64cc8cd Binary files /dev/null and b/sw/qa/extras/ww8export/data/tdf36711_inlineFrames.doc differ diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx index 9658c7e2dd51..0253778f1ec6 100644 --- a/sw/qa/extras/ww8export/ww8export.cxx +++ b/sw/qa/extras/ww8export/ww8export.cxx @@ -587,6 +587,11 @@ DECLARE_WW8EXPORT_TEST(testTdf133504_wrapNotBeside, "tdf133504_wrapNotBeside.doc CPPUNIT_ASSERT_EQUAL(text::WrapTextMode_NONE, getProperty<text::WrapTextMode>(getShape(1), "Surround")); } +DECLARE_WW8EXPORT_TEST(testTdf36711_inlineFrames, "tdf36711_inlineFrames.doc") +{ + CPPUNIT_ASSERT_EQUAL(text::RelOrientation::FRAME, getProperty<sal_Int16>(getShape(1), "VertOrientRelation")); +} + DECLARE_WW8EXPORT_TEST(testLayoutHanging, "fdo68967.doc") { // This must not hang in layout diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index 134acfba537d..4758c4646286 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -1996,6 +1996,11 @@ bTogglePos(false) // #i18732# switch( rWW.nTDyaAbs ) // particular Y-positions ? { + case 0: // inline + // Specifies that the parent object shall be vertically aligned in line + // with the surrounding text (i.e. shall not allow any text wrapping around it) + eVRel = text::RelOrientation::FRAME; + break; case -4: eVAlign = text::VertOrientation::TOP; if (nYBind < 2)