--- 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();