From 7bd572f3eced56dc8b3edaf0bf9cdc05e14bd5a8 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sat, 13 Jul 2013 14:06:11 +0200 Subject: [PATCH] Fix inverted checks... --- simgear/canvas/elements/CanvasGroup.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/canvas/elements/CanvasGroup.cxx b/simgear/canvas/elements/CanvasGroup.cxx index 9da5fe3a..989d0b38 100644 --- a/simgear/canvas/elements/CanvasGroup.cxx +++ b/simgear/canvas/elements/CanvasGroup.cxx @@ -157,7 +157,7 @@ namespace canvas //---------------------------------------------------------------------------- void Group::clearEventListener() { - if( _transform.valid() ) + if( !_transform.valid() ) return warnTransformExpired("clearEventListener"); for(size_t i = 0; i < _transform->getNumChildren(); ++i) @@ -322,7 +322,7 @@ namespace canvas //---------------------------------------------------------------------------- void Group::handleZIndexChanged(ElementPtr child, int z_index) { - if( !child || _transform.valid() ) + if( !child || !_transform.valid() ) return; osg::ref_ptr tf = child->getMatrixTransform(); -- 2.39.5