From 1b49f5cc78a1d431a38cb36ec3f35e0a96d60a1d Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Thu, 28 Feb 2013 01:15:44 +0100 Subject: [PATCH] Canvas Window: use new CanvasImage method to handle events --- src/Canvas/window.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Canvas/window.cxx b/src/Canvas/window.cxx index 126212aa7..d0d72f509 100644 --- a/src/Canvas/window.cxx +++ b/src/Canvas/window.cxx @@ -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); } //---------------------------------------------------------------------------- -- 2.39.5