locationmapnavfw/library/src/mngeocoder.cpp
branchRCL_3
changeset 7 19bff11d6c18
parent 0 667063e416a2
--- a/locationmapnavfw/library/src/mngeocoder.cpp	Fri Mar 12 15:44:22 2010 +0200
+++ b/locationmapnavfw/library/src/mngeocoder.cpp	Mon Mar 15 12:42:19 2010 +0200
@@ -74,15 +74,22 @@
 void CopyCoordinatesL( CPosLandmark& aSrc, CPosLandmark& aTrg )
     {
     TLocality loc;
-    aSrc.GetPosition( loc );
-    aTrg.SetPositionL( loc );
+    TInt posErr = aSrc.GetPosition( loc );
+    if( !posErr )
+    	{
+    	aTrg.SetPositionL( loc );	
+    	}
     
     TRealX nan;
     nan.SetNaN();
     TReal32 coverage( nan );
     
-    aSrc.GetCoverageRadius( coverage );
-    aTrg.SetCoverageRadius( coverage );
+    TInt radiusErr = aSrc.GetCoverageRadius( coverage );
+    if( !radiusErr )
+    	{
+    	aTrg.SetCoverageRadius( coverage );
+    	}
+    
     }
 
 // ======== MEMBER FUNCTIONS ========