Canvas GUI: don't crash if enable decoration on window without content canvas
This commit is contained in:
parent
0904017ec5
commit
5b17a6c33f
1 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue