From d3c82295991b17c4a8531738079086362143e589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 4 Jul 2007 09:35:32 +0000 Subject: [PATCH] Fix orientation. svn path=/trunk/KDE/kdebase/workspace/; revision=683149 --- effects/desktopgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/desktopgrid.cpp b/effects/desktopgrid.cpp index 18b7cd5eab..9f725c6185 100644 --- a/effects/desktopgrid.cpp +++ b/effects/desktopgrid.cpp @@ -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