summaryrefslogtreecommitdiff
path: root/sw/qa/extras/rtfimport/rtfimport.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2015-06-10 08:49:13 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-06-16 07:25:07 +0000
commit63fbd90099098218994899ca7da3eb5e1656e4e7 (patch)
tree47271bb8d8956e528c10597cf6ff1b5ad2ea44fd /sw/qa/extras/rtfimport/rtfimport.cxx
parent7ffd7c4fd7bdc63098ec6ac746b9885f92964465 (diff)
rtf: skip binary data also in skip-group mode
Since there might be arbitrary rtf markup inside, we rather shouldn't act upon. Change-Id: Ia782d89cb4ce8f34df64a3e0cba16de2db7b7ccf Reviewed-on: https://gerrit.libreoffice.org/16206 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/qa/extras/rtfimport/rtfimport.cxx')
-rw-r--r--sw/qa/extras/rtfimport/rtfimport.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index 86dddfc339fa..8171b6dd2041 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -2301,6 +2301,12 @@ DECLARE_RTFIMPORT_TEST(testTdf90315, "tdf90315.rtf")
CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(1270), getProperty<sal_Int32>(xTextSection->getPropertyValue("TextColumns"), "AutomaticDistance"));
}
+DECLARE_RTFIMPORT_TEST(testBinSkipping, "bin-skipping.rtf")
+{
+ // before, it was importing '/nMUST NOT IMPORT'
+ CPPUNIT_ASSERT_EQUAL(OUString("text"), getRun(getParagraph(1), 1)->getString());
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */