]> git.mxchange.org Git - flightgear.git/commitdiff
Canvas Window: use new CanvasImage method to handle events
authorThomas Geymayer <tomgey@gmail.com>
Thu, 28 Feb 2013 00:15:44 +0000 (01:15 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Thu, 28 Feb 2013 00:15:59 +0000 (01:15 +0100)
src/Canvas/window.cxx

index 126212aa758f58aec3d929ed86d2e0b016fa693e..d0d72f509077262f9346908178e587b8b6ed2dc0 100644 (file)
@@ -130,10 +130,7 @@ namespace canvas
   //----------------------------------------------------------------------------
   bool Window::handleMouseEvent(const simgear::canvas::MouseEventPtr& event)
   {
-    if( !getCanvas().expired() )
-      return getCanvas().lock()->handleMouseEvent(event);
-    else
-      return false;
+    return _image.handleMouseEvent(event);
   }
 
   //----------------------------------------------------------------------------