Fix broken assertion.

svn path=/trunk/KDE/kdebase/workspace/; revision=926177
This commit is contained in:
Luboš Luňák 2009-02-14 19:36:40 +00:00
parent d398ad0c9e
commit b34020efff

View file

@ -45,7 +45,7 @@ void Workspace::setNETDesktopLayout( Qt::Orientation orientation, int width, int
Q_UNUSED( startingCorner ); // Not really worth implementing right now.
// Calculate valid grid size
assert( width > 0 && height > 0 );
assert( width > 0 || height > 0 );
if(( width <= 0 ) && ( height > 0 ))
width = ( desktopCount_ + height - 1 ) / height;
else if(( height <= 0 ) && ( width > 0 ))