1
0
Fork 0

Canvas GUI: don't crash if enable decoration on window without content canvas

This commit is contained in:
Thomas Geymayer 2013-07-27 22:15:27 +02:00
parent 0904017ec5
commit 5b17a6c33f

View file

@ -211,8 +211,8 @@ namespace canvas
(
0,
0,
get<int>("content-size[0]", content->getViewWidth()),
get<int>("content-size[1]", content->getViewHeight())
get<int>("content-size[0]", content ? content->getViewWidth() : 400),
get<int>("content-size[1]", content ? content->getViewHeight() : 300)
);
if( _decoration_border.isNone() && !shadow_radius )