]> git.mxchange.org Git - simgear.git/commitdiff
Fix inverted checks...
authorThomas Geymayer <tomgey@gmail.com>
Sat, 13 Jul 2013 12:06:11 +0000 (14:06 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Sat, 13 Jul 2013 12:06:11 +0000 (14:06 +0200)
simgear/canvas/elements/CanvasGroup.cxx

index 9da5fe3a7cc9f796f52dc839076643e592fac052..989d0b386ae5877888d42c2a76bc9f69e0c66a83 100644 (file)
@@ -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<osg::MatrixTransform> tf = child->getMatrixTransform();