Fix orientation.

svn path=/trunk/KDE/kdebase/workspace/; revision=683149
This commit is contained in:
Luboš Luňák 2007-07-04 09:35:32 +00:00
parent 08de0fc63f
commit d3c8229599

View file

@ -271,7 +271,7 @@ QRect DesktopGridEffect::desktopRect( int desktop, bool scaled ) const
effects->calcDesktopLayout( &x, &y, &orientation );
--desktop; // make it start with 0
QRect rect;
if( orientation == Qt::Vertical )
if( orientation == Qt::Horizontal )
rect = QRect(( desktop % x ) * displayWidth(), ( desktop / x ) * displayHeight(),
displayWidth(), displayHeight());
else