diff options
author | Justin Luth <justin_luth@sil.org> | 2017-09-08 11:21:37 -0400 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2017-09-09 16:07:44 +0200 |
commit | 7ed6bcc714ed0e4f23031c1cbc16176b3549e391 (patch) | |
tree | 85a38c75453213e290d197970ec701fa25794e20 /sw/qa | |
parent | 1bc1f028e0159de965af8fa85b32566374b97067 (diff) |
tdf#112074 ww8import: replace m_nOrgDxaLeft with GetMinLeft()
Followup to commit 176a723876b0138debb20f824103b2ab0c910401.
In those comments (https://gerrit.libreoffice.org/#/c/41664)
I said I'd leave the existing use of m_nOrgDxaLeft even though
reading through the code suggested GetMinLeft() might be better.
Well, round-tripping shows that MSWord properly reads the indent,
but LO doesn't - unless using GetMinLeft(). So now I have my
proof document and I can make the desired change with confidence.
Change-Id: Icbe12b50c4f2dcf3a0d78f87685f1dfba53a375b
Reviewed-on: https://gerrit.libreoffice.org/42113
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ww8export/ww8export2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/ww8export/ww8export2.cxx b/sw/qa/extras/ww8export/ww8export2.cxx index 71587864e6cd..cc6e3f14c5c6 100644 --- a/sw/qa/extras/ww8export/ww8export2.cxx +++ b/sw/qa/extras/ww8export/ww8export2.cxx @@ -205,6 +205,7 @@ DECLARE_WW8EXPORT_TEST(testTdf112074_RTLtableJustification, "tdf112074_RTLtableJ CPPUNIT_ASSERT_EQUAL_MESSAGE("Right To Left writing mode", text::WritingMode2::RL_TB, getProperty<sal_Int16>(xTable, "WritingMode")); CPPUNIT_ASSERT_EQUAL_MESSAGE("Horizontal Orientation", text::HoriOrientation::LEFT_AND_WIDTH, getProperty<sal_Int16>(xTable, "HoriOrient")); CPPUNIT_ASSERT_MESSAGE("Table Indent", getProperty<long>(xTable, "LeftMargin") > 3000); + CPPUNIT_ASSERT_MESSAGE("Table Indent is 3750", getProperty<long>(xTable, "LeftMargin") < 4000 ); } DECLARE_WW8EXPORT_TEST(testTdf104805, "tdf104805.doc") |