summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/shapes/drawshape.cxx
diff options
context:
space:
mode:
authorChristian Lippka <christian.lippka@sun.com>2010-01-04 15:43:22 +0100
committerChristian Lippka <christian.lippka@sun.com>2010-01-04 15:43:22 +0100
commitb71823a291b10fe67cd96b81bce3fb0d91dcb893 (patch)
tree756017bd26f549770d70b47488b4fe11aaff1504 /slideshow/source/engine/shapes/drawshape.cxx
parentdada72080460ab3a1bf4228a38454339b1d5f204 (diff)
parenteb86211c1db0bb492669e7ac8302b89254ed4793 (diff)
merge to m68
Diffstat (limited to 'slideshow/source/engine/shapes/drawshape.cxx')
-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 e588a8fb4e58..899804fe1896 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();
@@ -1277,6 +1278,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;
}