From d3b5bf8a6890743198107edec728f1c70d459f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 29 May 2006 16:00:19 +0000 Subject: [PATCH] Size can be empty during attempted resize, avoid the warning. svn path=/trunk/KDE/kdebase/workspace/; revision=546265 --- geometry.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geometry.cpp b/geometry.cpp index e055a040a8..f7a340c08b 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -993,6 +993,8 @@ QSize Client::adjustedSize( const QSize& frame, Sizemode mode ) const QSize wsize( frame.width() - ( border_left + border_right ), frame.height() - ( border_top + border_bottom )); + if( wsize.isEmpty()) + wsize = QSize( 1, 1 ); return sizeForClientSize( wsize, mode, false ); }