Fix compile.

svn path=/trunk/KDE/kdebase/workspace/; revision=659564
This commit is contained in:
Luboš Luňák 2007-04-30 12:21:31 +00:00
parent 867c495c83
commit 6c91ced7a0

View file

@ -1610,7 +1610,7 @@ void Workspace::setDesktopLayout(NET::Orientation o, int x, int y,NET::DesktopLa
void Workspace::calcDesktopLayout(int* xp, int* yp, Qt::Orientation* orientation) const
{
x = layoutX; // <= 0 means compute it from the other and total number of desktops
int x = layoutX; // <= 0 means compute it from the other and total number of desktops
int y = layoutY;
if((x <= 0) && (y > 0))
x = (numberOfDesktops()+y-1) / y;