From 22e6916a820201e9750fcba683699e355e55c9d6 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sat, 1 Feb 2014 16:16:10 +0100 Subject: [PATCH] oox: clear the saved shape when the shape really ends Change-Id: Id0d644407bf1f5672e654082328434b9464c140a --- oox/source/shape/ShapeContextHandler.cxx | 1 + sw/qa/extras/ooxmlimport/data/missing-path.docx | Bin 0 -> 15860 bytes sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 11 +++++++++++ 3 files changed, 12 insertions(+) create mode 100755 sw/qa/extras/ooxmlimport/data/missing-path.docx diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx index 6b992d986e86..fb24aa359f9d 100644 --- a/oox/source/shape/ShapeContextHandler.cxx +++ b/oox/source/shape/ShapeContextHandler.cxx @@ -330,6 +330,7 @@ void SAL_CALL ShapeContextHandler::endFastElement(::sal_Int32 Element) uno::Reference xServiceInfo(mxSavedShape, uno::UNO_QUERY); if (xServiceInfo.is() && xServiceInfo->supportsService("com.sun.star.text.TextFrame")) mxWpsContext.clear(); + mxSavedShape.clear(); } } diff --git a/sw/qa/extras/ooxmlimport/data/missing-path.docx b/sw/qa/extras/ooxmlimport/data/missing-path.docx new file mode 100755 index 0000000000000000000000000000000000000000..8d75e9f630edaa9fe9b36ef510d17ae5739c8882 GIT binary patch literal 15860 zcmeIZWmp~Awl2JIcXxMpcXxsl2=4Cg?hxF9yK4w;!QFzpTX2VPS9+hmySvYR?)Uva zr+BJXty(oly)_wQ&UX$`mIDJv2S5U#0RR9A0ERp~C=dhyh=TwC&;Zb&I%4*AE~a)a z`f8pIrp})jJ#1}=3&26C^8ld0`~P?QAKU{?$qGur!pLD4l)s=FG{IKAmQtOw3>IE(m1hD)Ngzb|&<&Uc8LMu?5e_rp}Gx!i==O>)vxMMq0FXBK@XIE>NDBY-KiE6 zP04bvQ%0hcH!0KC700hIq{ zxrCo_TW)~rs0cJnIH2X~JDJ)zGco=?{;$RU4>r@kyn0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dN^{6kwqHkW_r3u4y?(0ikni$H`ByETIvf1_ROW2{ ztWBGc)BM?u$5S4y`v|?ML!Kx1io<-Id@DZW_HnC*-W5-LpC67LeM&33KB~PUz`5*r zh?PPW`2n^4Uoj&PPzGR3?N7hO-^*10{NMli`5%f_mF4~};P2IPe>VL6*#>;%Uux(6 z+3@crM1O6#0ZdQ(e-#w{mP82lJ1+R23PrI05Ct@FKvAG5Fdp_F%0?jmRW|aE41j+E z{AZ@zzagdrpZy>6=KhN8zh@-;6`3Fq6WD(W9sX0!-`!sSmI44=&;S7c%?b9;=Kpk6{9Aw*{oi2x9+>~x z_@5L1zZ+X}{8!_@(SU!p|NBJn@74f72G?J(|JSsjEC&HpO8@{K_{Rg(>|);E-~JC9 CLyBSm literal 0 HcmV?d00001 diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index c2f3c9570447..8af52d678796 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -48,6 +49,7 @@ #include #include #include +#include #include @@ -1653,6 +1655,15 @@ DECLARE_OOXMLIMPORT_TEST(testMceNested, "mce-nested.docx") CPPUNIT_ASSERT_EQUAL(drawing::TextVerticalAdjust_BOTTOM, getProperty(xGroup->getByIndex(1), "TextVerticalAdjust")); } +DECLARE_OOXMLIMPORT_TEST(testMissingPath, "missing-path.docx") +{ + comphelper::SequenceAsHashMap aCustomShapeGeometry(getProperty(getShape(1), "CustomShapeGeometry")); + comphelper::SequenceAsHashMap aPath(aCustomShapeGeometry["Path"].get()); + uno::Sequence aCoordinates = aPath["Coordinates"].get< uno::Sequence >(); + // This was 0, the coordinate list was empty. + CPPUNIT_ASSERT_EQUAL(sal_Int32(19), aCoordinates.getLength()); +} + DECLARE_OOXMLIMPORT_TEST(testFdo70457, "fdo70457.docx") { // The document contains a rotated bitmap