From: Thomas Geymayer Date: Sat, 27 Jul 2013 20:15:27 +0000 (+0200) Subject: Canvas GUI: don't crash if enable decoration on window without content canvas X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b17a6c33fab9718217e2cfc5347a7a180d807de;p=flightgear.git Canvas GUI: don't crash if enable decoration on window without content canvas --- diff --git a/src/Canvas/window.cxx b/src/Canvas/window.cxx index d1bbe90eb..012915faf 100644 --- a/src/Canvas/window.cxx +++ b/src/Canvas/window.cxx @@ -211,8 +211,8 @@ namespace canvas ( 0, 0, - get("content-size[0]", content->getViewWidth()), - get("content-size[1]", content->getViewHeight()) + get("content-size[0]", content ? content->getViewWidth() : 400), + get("content-size[1]", content ? content->getViewHeight() : 300) ); if( _decoration_border.isNone() && !shadow_radius )