--- a/imstutils/imconversationview/imcvuiapp/src/cimcvappsmileicongrid.cpp Tue Apr 27 16:24:22 2010 +0300
+++ b/imstutils/imconversationview/imcvuiapp/src/cimcvappsmileicongrid.cpp Tue May 11 16:01:07 2010 +0300
@@ -550,8 +550,10 @@
TInt oldSelection = iCursorPos;
TPoint hitPos = aPointerEvent.iPosition;
- // Convert XY position to linear cursor position
- hitPos -= iFirstCell.iTl;
+ // Convert XY position to linear cursor position
+ TPoint cellLeftTop( KTopLeft_x,KTopLeft_y );
+ hitPos -= cellLeftTop;
+
TInt xPos = hitPos.iX / iCellWidth;
TInt yPos = hitPos.iY / iCellHeight;
TInt newSelection = yPos * iMaxColumns + xPos;