summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-08-23 10:45:58 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-08-23 16:13:09 +0200
commitb6a4247ea5eec433493672770e3023fb9ae7880a (patch)
tree27a0f79fbb164d7d2c8ddfb703803324df6cf53f /sw/qa
parenta1c4ab09ddd669810a412e5ab40d7f06326b55cc (diff)
VML import: fix default value of mso-wrap-distance-left/right
Change-Id: I2168358076d9c5ce3271b21cd5a541e51aa502f9
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index d938671f710a..a307044a599a 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -684,6 +684,11 @@ void Test::testTextframeGradient()
CPPUNIT_ASSERT_EQUAL(sal_Int32(0x000000), aGradient.StartColor);
CPPUNIT_ASSERT_EQUAL(sal_Int32(0x666666), aGradient.EndColor);
CPPUNIT_ASSERT_EQUAL(awt::GradientStyle_AXIAL, aGradient.Style);
+
+ // Left / right margin was incorrect: the attribute was missing and we
+ // didn't have the right default (had 0 instead of the below one).
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(318), getProperty<sal_Int32>(xFrame, "LeftMargin"));
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(318), getProperty<sal_Int32>(xFrame, "RightMargin"));
}
void Test::testCellBtlr()