diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-24 01:38:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-25 15:07:14 +0300 |
commit | 233f2b564e7707f79deb493444f28363ac10bfd4 (patch) | |
tree | ee9d960c24e68f7ce9da05ee9a0333a74615565d /src/gui/widgets/basiccontainer2.cpp | |
parent | 1498a699f89f7b5aebdc4629c645c3702ee04f92 (diff) | |
download | plus-233f2b564e7707f79deb493444f28363ac10bfd4.tar.gz plus-233f2b564e7707f79deb493444f28363ac10bfd4.tar.bz2 plus-233f2b564e7707f79deb493444f28363ac10bfd4.tar.xz plus-233f2b564e7707f79deb493444f28363ac10bfd4.zip |
Add missing checks on nonnull attributes to widgets.
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); } |