From bf91a397c0a89521727789efa0c8f64811b91872 Mon Sep 17 00:00:00 2001 From: Andre Fischer Date: Tue, 24 Mar 2009 09:22:17 +0000 Subject: #i100047# Calling updateStateIds() from createAttributeLayer(). --- slideshow/source/engine/shapes/drawshape.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'slideshow/source/engine/shapes/drawshape.cxx') diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx index a4c36cf2e6af..e241c20df951 100644 --- a/slideshow/source/engine/shapes/drawshape.cxx +++ b/slideshow/source/engine/shapes/drawshape.cxx @@ -262,7 +262,8 @@ namespace slideshow void DrawShape::updateStateIds() const { - // update the states, we've just redrawn + // Update the states, we've just redrawn or created a new + // attribute layer. if( mpAttributeLayer ) { mnAttributeTransformationState = mpAttributeLayer->getTransformationState(); @@ -1258,6 +1259,9 @@ namespace slideshow // create new layer, with last as its new child mpAttributeLayer.reset( new ShapeAttributeLayer( mpAttributeLayer ) ); + // Update the local state ids to reflect those of the new layer. + updateStateIds(); + return mpAttributeLayer; } -- cgit