diff options
-rw-r--r-- | include/vcl/vectorgraphicdata.hxx | 2 | ||||
-rw-r--r-- | sd/qa/unit/data/pdf/multipage.pdf | bin | 9121 -> 13155 bytes | |||
-rw-r--r-- | sd/qa/unit/import-tests.cxx | 4 |
3 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/vectorgraphicdata.hxx b/include/vcl/vectorgraphicdata.hxx index 8ccf45b51e5d..7e272602f67f 100644 --- a/include/vcl/vectorgraphicdata.hxx +++ b/include/vcl/vectorgraphicdata.hxx @@ -111,6 +111,8 @@ public: BitmapChecksum GetChecksum() const; sal_Int32 getPageIndex() const { return mnPageIndex; } + + bool isPrimitiveSequenceCreated() const { return mbSequenceCreated; } }; typedef std::shared_ptr< VectorGraphicData > VectorGraphicDataPtr; diff --git a/sd/qa/unit/data/pdf/multipage.pdf b/sd/qa/unit/data/pdf/multipage.pdf Binary files differindex 5cd8b4e4e569..65c8eeaa32a5 100644 --- a/sd/qa/unit/data/pdf/multipage.pdf +++ b/sd/qa/unit/data/pdf/multipage.pdf diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index 954ef5b187ba..e47c8e3cbe10 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -1321,11 +1321,13 @@ void SdImportTest::testPDFImportShared() const GraphicObject& rGraphicObject = pSdrGrafObj->GetGraphicObject().GetGraphic(); const Graphic& rGraphic = rGraphicObject.GetGraphic(); + CPPUNIT_ASSERT_MESSAGE("After loading, the PDF shouldn't have the primitive sequence created yet", + !rGraphic.getVectorGraphicData()->isPrimitiveSequenceCreated()); aGraphics.push_back(rGraphic); } } - CPPUNIT_ASSERT_EQUAL_MESSAGE("Expected more than one page.", size_t(3), aGraphics.size()); + CPPUNIT_ASSERT_EQUAL_MESSAGE("Expected more than one page.", size_t(9), aGraphics.size()); Graphic const & rFirstGraphic = aGraphics[0]; |