From 8e244c7e5b6c98b1a6e67d4e387a9c231a42b15c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Jan 2012 01:38:06 +0300 Subject: Add some missing checks to window resize code. --- src/gui/widgets/windowcontainer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/widgets/windowcontainer.cpp') diff --git a/src/gui/widgets/windowcontainer.cpp b/src/gui/widgets/windowcontainer.cpp index ce218e042..9e698ffa6 100644 --- a/src/gui/widgets/windowcontainer.cpp +++ b/src/gui/widgets/windowcontainer.cpp @@ -48,6 +48,8 @@ void WindowContainer::adjustAfterResize(int oldScreenWidth, int oldScreenHeight) { for (WidgetListIterator i = mWidgets.begin(); i != mWidgets.end(); ++i) + { if (Window *window = dynamic_cast(*i)) window->adjustPositionAfterResize(oldScreenWidth, oldScreenHeight); + } } -- cgit v1.2.3-70-g09d2