From 5bdff09d5e7026c8176d11abfa164b1c44bf4222 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Sat, 27 May 2023 20:17:44 -0400 Subject: 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 Tested-by: Jenkins --- sw/source/filter/ww8/ww8par6.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sw/source') 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) -- cgit