equal
deleted
inserted
replaced
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(); |