From: Thomas Geymayer Date: Thu, 28 Feb 2013 00:15:44 +0000 (+0100) Subject: Canvas Window: use new CanvasImage method to handle events X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b49f5cc78a1d431a38cb36ec3f35e0a96d60a1d;p=flightgear.git Canvas Window: use new CanvasImage method to handle events --- 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); } //----------------------------------------------------------------------------