From: Thomas Geymayer Date: Sat, 13 Jul 2013 12:06:11 +0000 (+0200) Subject: Fix inverted checks... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7bd572f3eced56dc8b3edaf0bf9cdc05e14bd5a8;p=simgear.git Fix inverted checks... --- 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();