diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-10-11 10:48:16 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-10-11 10:52:47 +0200 |
commit | e2c481db7b905305128e733bb1fc8d0ad8cadbf5 (patch) | |
tree | 15648c90b6c05c6294f7131a2e2249eec06e65f6 /sw/qa | |
parent | 3d7e168a2a43c2414b0633379102ddb29437e75b (diff) |
n#783638 testcase
Change-Id: I6b6093ba1e6961e421ac9754fdbdea9ba63eeda0
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlimport/data/n783638.docx | bin | 0 -> 19119 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/n783638.docx b/sw/qa/extras/ooxmlimport/data/n783638.docx Binary files differnew file mode 100644 index 000000000000..93b587b92ef9 --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/n783638.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index acc2097a50d2..c3a0bc52a6c0 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -104,6 +104,7 @@ public: void testShadow(); void testN782061(); void testN782345(); + void testN783638(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) @@ -150,6 +151,7 @@ public: CPPUNIT_TEST(testShadow); CPPUNIT_TEST(testN782061); CPPUNIT_TEST(testN782345); + CPPUNIT_TEST(testN783638); #endif CPPUNIT_TEST_SUITE_END(); @@ -1077,6 +1079,17 @@ void Test::testN779957() } } +void Test::testN783638() +{ + // The problem was that the margins of inline images were not zero. + load("n783638.docx"); + + uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference<container::XIndexAccess> xDraws(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY); + uno::Reference<beans::XPropertySet> xPropertySet(xDraws->getByIndex(0), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(sal_Int32(0), getProperty<sal_Int32>(xPropertySet, "LeftMargin")); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); |