sw/qa/extras/ooxmlimport/data/tdf101627.docx |binary
 sw/qa/extras/ooxmlimport/ooxmlimport.cxx     |    8 ++++++++
 2 files changed, 8 insertions(+)

New commits:
commit d862741423cdf0ef228d34b2a25b09c9401be584
Author: Patrick Jaap <p...@mail.de>
Date:   Thu Apr 20 15:31:18 2017 +0200

    tdf#101627 add unit test
    
    unit test for the patch 80b9b6761e8cb974e0cdc0c7be0eb95f8745d86f
    
    Change-Id: I68b7eb686fa52f1851455160e1196f0748935c4c
    Reviewed-on: https://gerrit.libreoffice.org/36747
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Michael Stahl <mst...@redhat.com>

diff --git a/sw/qa/extras/ooxmlimport/data/tdf101627.docx 
b/sw/qa/extras/ooxmlimport/data/tdf101627.docx
new file mode 100644
index 000000000000..0a1efd8f4295
Binary files /dev/null and b/sw/qa/extras/ooxmlimport/data/tdf101627.docx differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx 
b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 2a6bbf49dd05..9154ef1cfa3c 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -1304,6 +1304,14 @@ DECLARE_OOXMLIMPORT_TEST( testTdf106606, 
"tdf106606.docx" )
     CPPUNIT_ASSERT( FindGraphicBitmapPropertyInNumStyle("WWNum2") );
 }
 
+DECLARE_OOXMLIMPORT_TEST(testTdf101627, "tdf101627.docx")
+{
+    // Do not shrink the textbox in the footer
+    uno::Reference<text::XTextRange> xFrame(getShape(1), uno::UNO_QUERY);
+    CPPUNIT_ASSERT(xFrame->getString().startsWith( "1" ) );
+    CPPUNIT_ASSERT_EQUAL(sal_Int32(466), getProperty<sal_Int32>(xFrame, 
"Height"));
+}
+
 // tests should only be added to ooxmlIMPORT *if* they fail round-tripping in 
ooxmlEXPORT
 
 CPPUNIT_PLUGIN_IMPLEMENT();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to