emailuis/uicomponents/src/fstreeplainonelineitemvisualizer.cpp
changeset 3 a4d6f1ea0416
parent 1 12c456ceeff2
child 10 f5907b1a1053
equal deleted inserted replaced
2:5253a20d2a1e 3:a4d6f1ea0416
   627                                                  const TInt aMarqueeRepetitions)
   627                                                  const TInt aMarqueeRepetitions)
   628     {
   628     {
   629     FUNC_LOG;
   629     FUNC_LOG;
   630     TInt marqueeSize(0), textWidth(0);
   630     TInt marqueeSize(0), textWidth(0);
   631 
   631 
   632     if ( aMarqueeType == EFsTextMarqueeNone )
   632     if ( aMarqueeType == EFsTextMarqueeNone || !iTextVisual )
   633         {
   633         {
   634         return;
   634         return;
   635         }
   635         }
   636 
       
   637 
   636 
   638     iTextVisual->SetWrapping(CAlfTextVisual::ELineWrapManual);
   637     iTextVisual->SetWrapping(CAlfTextVisual::ELineWrapManual);
   639 
   638 
   640     textWidth = iTextVisual->SubstringExtents(0, iTextVisual->Text().Length()).Width();
   639     textWidth = iTextVisual->SubstringExtents(0, iTextVisual->Text().Length()).Width();
   641     marqueeSize = textWidth - iViewportLayout->Size().iX.Target();
   640     marqueeSize = textWidth - iViewportLayout->Size().iX.Target();