From 624522b4260b82735764377119c4b2ce6a2799ff Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sun, 12 Aug 2012 20:21:14 +0200 Subject: [PATCH] Canvas: Don't crash if texture not available --- src/Canvas/elements/CanvasImage.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Canvas/elements/CanvasImage.cxx b/src/Canvas/elements/CanvasImage.cxx index 62a2e4dc2..e0bbbb764 100644 --- a/src/Canvas/elements/CanvasImage.cxx +++ b/src/Canvas/elements/CanvasImage.cxx @@ -323,6 +323,9 @@ namespace canvas ? _canvas.lock()->getTexture() : _texture.get(); + if( !texture ) + return Rect(); + return Rect ( 0,0,