Size can be empty during attempted resize, avoid the warning.
svn path=/trunk/KDE/kdebase/workspace/; revision=546265
This commit is contained in:
parent
e000f78091
commit
d3b5bf8a68
1 changed files with 2 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue