summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slideshow/source/engine/slide/slideimpl.cxx2
-rw-r--r--slideshow/source/inc/shapeimporter.hxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx
index 3ea925fb976d..690b601c13ad 100644
--- a/slideshow/source/engine/slide/slideimpl.cxx
+++ b/slideshow/source/engine/slide/slideimpl.cxx
@@ -1140,7 +1140,7 @@ bool SlideImpl::loadShapes()
}
addPolygons(aMPShapesFunctor.getPolygons());
- nCurrCount = xMasterPageShapes->getCount() + 1;
+ nCurrCount = aMPShapesFunctor.getImportedShapesCount();
}
catch( uno::RuntimeException& )
{
diff --git a/slideshow/source/inc/shapeimporter.hxx b/slideshow/source/inc/shapeimporter.hxx
index c9fd7b738c2d..d8ebed25fba3 100644
--- a/slideshow/source/inc/shapeimporter.hxx
+++ b/slideshow/source/inc/shapeimporter.hxx
@@ -103,6 +103,8 @@ public:
*/
bool isImportDone() const;
PolyPolygonVector getPolygons();
+
+ double getImportedShapesCount() { return mnAscendingPrio; }
private:
bool isSkip( ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertySet> const& xPropSet,