From 27b623d9743667d123532f0e5aac6f6f14fbc0a2 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Mon, 1 Feb 2016 12:58:44 +0100 Subject: sw: for better or worse getParagraph() is 1-based Change-Id: I2bc99b4cbb86a368b6218b3c1a7dfc693858d1c9 --- sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sw/qa/extras/ooxmlimport') diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index 55853f196917..2e43da1c9a56 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -799,9 +799,9 @@ DECLARE_OOXMLIMPORT_TEST(testN778836, "n778836.docx") * The problem was that the paragraph inherited margins from the numbering * and parent paragraph styles and the result was incorrect. */ - CPPUNIT_ASSERT_EQUAL(sal_Int32(1270), getProperty(getParagraph(0), "ParaRightMargin")); - CPPUNIT_ASSERT_EQUAL(sal_Int32(3810), getProperty(getParagraph(0), "ParaLeftMargin")); - CPPUNIT_ASSERT_EQUAL(sal_Int32(-635), getProperty(getParagraph(0), "ParaFirstLineIndent")); + CPPUNIT_ASSERT_EQUAL(sal_Int32(1270), getProperty(getParagraph(1), "ParaRightMargin")); + CPPUNIT_ASSERT_EQUAL(sal_Int32(3810), getProperty(getParagraph(1), "ParaLeftMargin")); + CPPUNIT_ASSERT_EQUAL(sal_Int32(-635), getProperty(getParagraph(1), "ParaFirstLineIndent")); } DECLARE_OOXMLIMPORT_TEST(testN778140, "n778140.docx") @@ -810,8 +810,8 @@ DECLARE_OOXMLIMPORT_TEST(testN778140, "n778140.docx") * The problem was that the paragraph top/bottom margins were incorrect due * to unhandled w:doNotUseHTMLParagraphAutoSpacing. */ - CPPUNIT_ASSERT_EQUAL(sal_Int32(176), getProperty(getParagraph(0), "ParaTopMargin")); - CPPUNIT_ASSERT_EQUAL(sal_Int32(176), getProperty(getParagraph(0), "ParaBottomMargin")); + CPPUNIT_ASSERT_EQUAL(sal_Int32(176), getProperty(getParagraph(1), "ParaTopMargin")); + CPPUNIT_ASSERT_EQUAL(sal_Int32(176), getProperty(getParagraph(1), "ParaBottomMargin")); } DECLARE_OOXMLIMPORT_TEST(testN778828, "n778828.docx") -- cgit v1.2.3