summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2009-03-24 09:22:17 +0000
committerAndre Fischer <af@openoffice.org>2009-03-24 09:22:17 +0000
commitbf91a397c0a89521727789efa0c8f64811b91872 (patch)
tree8e0c0c981e7bff6b37bb60cdd5e1f12050c692e6 /slideshow
parenta7bd3d52eec783eadd078797f504c1e3c4878ab8 (diff)
#i100047# Calling updateStateIds() from createAttributeLayer().
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/shapes/drawshape.cxx6
1 files changed, 5 insertions, 1 deletions
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;
}