imstutils/imconversationview/imcvuiapp/src/cimcvappsmileicongrid.cpp
branchRCL_3
changeset 18 36d367c62acb
parent 16 d20aea8a18b6
child 19 76f25fb7a6a1
--- 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;