emailuis/uicomponents/src/fstreeplainonelineitemvisualizer.cpp
changeset 3 a4d6f1ea0416
parent 1 12c456ceeff2
child 10 f5907b1a1053
--- a/emailuis/uicomponents/src/fstreeplainonelineitemvisualizer.cpp	Mon Jan 18 20:08:26 2010 +0200
+++ b/emailuis/uicomponents/src/fstreeplainonelineitemvisualizer.cpp	Tue Jan 26 11:45:42 2010 +0200
@@ -629,12 +629,11 @@
     FUNC_LOG;
     TInt marqueeSize(0), textWidth(0);
 
-    if ( aMarqueeType == EFsTextMarqueeNone )
+    if ( aMarqueeType == EFsTextMarqueeNone || !iTextVisual )
         {
         return;
         }
 
-
     iTextVisual->SetWrapping(CAlfTextVisual::ELineWrapManual);
 
     textWidth = iTextVisual->SubstringExtents(0, iTextVisual->Text().Length()).Width();