summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/shapeattributelayer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/shapeattributelayer.cxx')
-rw-r--r--slideshow/source/engine/shapeattributelayer.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/slideshow/source/engine/shapeattributelayer.cxx b/slideshow/source/engine/shapeattributelayer.cxx
index 19817c01c10a..2816d33983a7 100644
--- a/slideshow/source/engine/shapeattributelayer.cxx
+++ b/slideshow/source/engine/shapeattributelayer.cxx
@@ -48,21 +48,21 @@ namespace slideshow
*/
void ShapeAttributeLayer::updateStateIds()
{
- if( haveChild() )
- {
- if( mnTransformationState != mpChild->getTransformationState() )
- ++mnTransformationState;
- if( mnClipState != mpChild->getClipState() )
- ++mnClipState;
- if( mnAlphaState != mpChild->getAlphaState() )
- ++mnAlphaState;
- if( mnPositionState != mpChild->getPositionState() )
- ++mnPositionState;
- if( mnContentState != mpChild->getContentState() )
- ++mnContentState;
- if( mnVisibilityState != mpChild->getVisibilityState() )
- ++mnVisibilityState;
- }
+ if( !haveChild() )
+ return;
+
+ if( mnTransformationState != mpChild->getTransformationState() )
+ ++mnTransformationState;
+ if( mnClipState != mpChild->getClipState() )
+ ++mnClipState;
+ if( mnAlphaState != mpChild->getAlphaState() )
+ ++mnAlphaState;
+ if( mnPositionState != mpChild->getPositionState() )
+ ++mnPositionState;
+ if( mnContentState != mpChild->getContentState() )
+ ++mnContentState;
+ if( mnVisibilityState != mpChild->getVisibilityState() )
+ ++mnVisibilityState;
}
/** Calc attribute value.