From 5b17a6c33fab9718217e2cfc5347a7a180d807de Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sat, 27 Jul 2013 22:15:27 +0200 Subject: [PATCH] Canvas GUI: don't crash if enable decoration on window without content canvas --- src/Canvas/window.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.39.5