Size can be empty during attempted resize, avoid the warning.

svn path=/trunk/KDE/kdebase/workspace/; revision=546265
This commit is contained in:
Luboš Luňák 2006-05-29 16:00:19 +00:00
parent e000f78091
commit d3b5bf8a68

View file

@ -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 );
}