diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-05 10:36:08 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-05 13:41:28 +0200 |
commit | 845fb7bf6753ec9582d0b1d1c9b4276aa9e6c65e (patch) | |
tree | a4a2575b933234d5e02ae6c04a579316ede29aa6 /sw/qa | |
parent | 645bccf7a5b91d794d387286deca583ea41f3516 (diff) |
abi#10039 RTF export: support page-anchored frames
Change-Id: I71c961799f76446cdf24faeba86f881ae02ffe3b
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/rtfexport/data/abi10039.odt | bin | 0 -> 12293 bytes | |||
-rw-r--r-- | sw/qa/extras/rtfexport/rtfexport.cxx | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfexport/data/abi10039.odt b/sw/qa/extras/rtfexport/data/abi10039.odt Binary files differnew file mode 100644 index 000000000000..4d5dde5af96a --- /dev/null +++ b/sw/qa/extras/rtfexport/data/abi10039.odt diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx index 63df38948632..f11f0bbd2d5a 100644 --- a/sw/qa/extras/rtfexport/rtfexport.cxx +++ b/sw/qa/extras/rtfexport/rtfexport.cxx @@ -680,6 +680,12 @@ DECLARE_RTFEXPORT_TEST(testPictureWrapPolygon, "picture-wrap-polygon.rtf") CPPUNIT_ASSERT_EQUAL(sal_Int32(convertTwipToMm100(-67)), getProperty<sal_Int32>(getShape(1), "VertOrientPosition")); } +DECLARE_RTFEXPORT_TEST(testAbi10039, "abi10039.odt") +{ + // Make sure we don't just crash on export, and additionally the shape should not be inline (as it's at-page anchored originally). + CPPUNIT_ASSERT(text::TextContentAnchorType_AS_CHARACTER != getProperty<text::TextContentAnchorType>(getShape(1), "AnchorType")); +} + #endif CPPUNIT_PLUGIN_IMPLEMENT(); |