messagingappbase/msgeditor/appuisrc/MsgNaviPaneControl.cpp
changeset 2 0bf1d54f37d9
parent 0 72b543305e3a
child 12 caea42e26caa
--- a/messagingappbase/msgeditor/appuisrc/MsgNaviPaneControl.cpp	Thu Jan 07 12:45:05 2010 +0200
+++ b/messagingappbase/msgeditor/appuisrc/MsgNaviPaneControl.cpp	Mon Jan 18 20:16:40 2010 +0200
@@ -248,7 +248,8 @@
                 {
                 iPreviouslyFocusedControl = leftArrowIndicator;
                 }
-            else if ( iPreviouslyFocusedControl == leftArrowIndicator )
+            // Coverty fix , Forward NULL, http://ousrv057/cov.cgi?cid=35876
+            else if ( iObserver && iPreviouslyFocusedControl == leftArrowIndicator )
                 {
                 iObserver->HandleNavigationControlEventL( 
                             MMsgNaviPaneControlObserver::EMsgNaviLeftArrowPressed );
@@ -370,11 +371,20 @@
         {
         TAknLayoutRect leftArrowTouchRect;
         leftArrowTouchRect.LayoutRect( Rect(), AknLayoutScalable_Apps::aid_size_touch_mv_arrow_left(iVarientId) );
-        iLeftArrowTouchRect = leftArrowTouchRect.Rect();
     
         TAknLayoutRect rightArrowTouchRect;
         rightArrowTouchRect.LayoutRect( Rect(), AknLayoutScalable_Apps::aid_size_touch_mv_arrow_right(iVarientId) );
-        iRightArrowTouchRect = rightArrowTouchRect.Rect();
+        if ( AknLayoutUtils::LayoutMirrored() )
+        	{
+        		iLeftArrowTouchRect=rightArrowTouchRect.Rect();
+        		iRightArrowTouchRect= leftArrowTouchRect.Rect();
+        	}
+        else
+        	{
+        		iLeftArrowTouchRect=leftArrowTouchRect.Rect();
+        		iRightArrowTouchRect= rightArrowTouchRect.Rect();
+        	}
+ 
         }
     }