uifw/ganes/src/HgGrid.cpp
branchRCL_3
changeset 16 71dd06cfe933
parent 10 9f56a4e1b8ab
child 18 0aa5fbdfbc30
--- a/uifw/ganes/src/HgGrid.cpp	Wed Mar 31 21:59:52 2010 +0300
+++ b/uifw/ganes/src/HgGrid.cpp	Wed Apr 14 16:14:00 2010 +0300
@@ -613,14 +613,14 @@
         }
     else
         {
+        TInt mul = AknLayoutUtils::LayoutMirrored() ? -1 : 1; 
         if( iLandscapeScrolling )
             {
-            TInt change = AknLayoutUtils::LayoutMirrored() ? -iRows : iRows; 
-            ChangeSelectedIndex( change );
+            ChangeSelectedIndex( mul * iRows );
             }
         else
             {
-            ChangeSelectedIndex( 1 );
+            ChangeSelectedIndex( mul );
             }
         FitSelectionToView();
         SelectionChanged();
@@ -640,14 +640,14 @@
         }
     else
         {
+        TInt mul = AknLayoutUtils::LayoutMirrored() ? 1 : -1; 
         if( iLandscapeScrolling )
             {
-            TInt change = AknLayoutUtils::LayoutMirrored() ? iRows : -iRows; 
-            ChangeSelectedIndex( change );
+            ChangeSelectedIndex( mul * iRows );
             }
         else
             {
-            ChangeSelectedIndex( -1 );
+            ChangeSelectedIndex( mul );
             }
         FitSelectionToView();
         SelectionChanged();