Fix broken assertion.
svn path=/trunk/KDE/kdebase/workspace/; revision=926177
This commit is contained in:
parent
d398ad0c9e
commit
b34020efff
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ void Workspace::setNETDesktopLayout( Qt::Orientation orientation, int width, int
|
||||||
Q_UNUSED( startingCorner ); // Not really worth implementing right now.
|
Q_UNUSED( startingCorner ); // Not really worth implementing right now.
|
||||||
|
|
||||||
// Calculate valid grid size
|
// Calculate valid grid size
|
||||||
assert( width > 0 && height > 0 );
|
assert( width > 0 || height > 0 );
|
||||||
if(( width <= 0 ) && ( height > 0 ))
|
if(( width <= 0 ) && ( height > 0 ))
|
||||||
width = ( desktopCount_ + height - 1 ) / height;
|
width = ( desktopCount_ + height - 1 ) / height;
|
||||||
else if(( height <= 0 ) && ( width > 0 ))
|
else if(( height <= 0 ) && ( width > 0 ))
|
||||||
|
|
Loading…
Reference in a new issue