summaryrefslogtreecommitdiff
path: root/slideshow/source
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-01-05 22:43:00 +0100
committerRadek Doulik <rodo@novell.com>2011-01-05 22:43:00 +0100
commitcffbb336ff4a19b2c70aa728535d2deac98fb7d4 (patch)
tree1b66c124d503d7e706f82363429646546bf4d1ca /slideshow/source
parentf4775316f6601ab5902277f31f7fe59fc2e0afdb (diff)
fix shapes rendering order n#656934
- it was broken for master pages containing group shapes
Diffstat (limited to 'slideshow/source')
-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 43eb012f0..95c047b01 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 0e7023b5c..384f35b69 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,