summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/qa/extras/rtfexport/data/tabs.rtf4
-rw-r--r--sw/qa/extras/rtfexport/rtfexport3.cxx9
2 files changed, 13 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfexport/data/tabs.rtf b/sw/qa/extras/rtfexport/data/tabs.rtf
new file mode 100644
index 000000000000..ddae982492d3
--- /dev/null
+++ b/sw/qa/extras/rtfexport/data/tabs.rtf
@@ -0,0 +1,4 @@
+{\rtf1
+\pard\plain \tqdec\tx1701
+A\tab B\par
+}
diff --git a/sw/qa/extras/rtfexport/rtfexport3.cxx b/sw/qa/extras/rtfexport/rtfexport3.cxx
index 9faa2f83c392..6f7dec91570a 100644
--- a/sw/qa/extras/rtfexport/rtfexport3.cxx
+++ b/sw/qa/extras/rtfexport/rtfexport3.cxx
@@ -244,6 +244,15 @@ DECLARE_RTFEXPORT_TEST(testTdf122455, "tdf122455.rtf")
CPPUNIT_ASSERT_EQUAL(16.0, getProperty<double>(getRun(getParagraph(1), 1), "CharHeight"));
}
+DECLARE_RTFEXPORT_TEST(testTabs, "tabs.rtf")
+{
+ // Test tab alignment in decimal mode.
+ auto aTabStops = getProperty<uno::Sequence<style::TabStop>>(getParagraph(1), "ParaTabStops");
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(1), aTabStops.getLength());
+ const style::TabStop& rTabStop = aTabStops[0];
+ CPPUNIT_ASSERT_EQUAL(style::TabAlign_DECIMAL, rTabStop.Alignment);
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */