uifw/EikStd/coctlsrc/AknButton.cpp
branchRCL_3
changeset 64 85902f042028
parent 59 978afdc0236f
child 72 a5e7a4f63858
--- a/uifw/EikStd/coctlsrc/AknButton.cpp	Tue Sep 14 21:48:24 2010 +0300
+++ b/uifw/EikStd/coctlsrc/AknButton.cpp	Wed Sep 15 12:29:17 2010 +0300
@@ -2307,11 +2307,11 @@
             {
             return;
             }            
-        TBool hitArea( EFalse );
-        TRAP_IGNORE( hitArea = HitAreaContainsL( aPointerEvent.iPosition, EFalse ))
-        if ( ( iFlags & KAknButtonHitTest ) && !hitArea )
+        //Using HitAreaContainsL() to verify whether pointer event locates in valid area
+        //when KAknButtonHitTest is defined.
+        if ( iFlags & KAknButtonHitTest ) 
             {
-            buttonEvent = EFalse;
+            TRAP_IGNORE( buttonEvent = HitAreaContainsL( aPointerEvent.iPosition, EFalse ))     
             }
         
         TBool redrawNeeded(EFalse);