diff options
Diffstat (limited to 'src/gui/widgets/basiccontainer2.cpp')
-rw-r--r-- | src/gui/widgets/basiccontainer2.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/basiccontainer2.cpp b/src/gui/widgets/basiccontainer2.cpp index cc0158d9a..11e36c09b 100644 --- a/src/gui/widgets/basiccontainer2.cpp +++ b/src/gui/widgets/basiccontainer2.cpp @@ -116,8 +116,11 @@ void BasicContainer2::add(Widget* widget) } void BasicContainer2::addXY(Widget* widget, - const int x, const int y) + const int x, + const int y) { + if (!widget) + return; widget->setPosition(x, y); BasicContainer::add(widget); } |