diff -r aecbbf00d063 -r d48ab3b357f1 uifw/AvKon/src/AknPhedView.cpp --- a/uifw/AvKon/src/AknPhedView.cpp Tue Aug 31 15:28:30 2010 +0300 +++ b/uifw/AvKon/src/AknPhedView.cpp Wed Sep 01 12:16:19 2010 +0100 @@ -499,7 +499,7 @@ { TRgb color = KRgbBlack; AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), color, - KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG51 ); + KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8 ); aGc.SetPenColor( color ); // This function shifts the RHS of aRect left by the width of the text drawn. // It temporarily limits the draw rectangle to the text width to prevent flicker. @@ -523,7 +523,7 @@ TRgb color; color = KRgbBlack; AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), color, - KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG51 ); + KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8 ); aGc.SetPenColor( color ); TPtr buf( TranslatedText( aText ) ); aGc.DrawText( buf, aRect, aBaseline, CGraphicsContext::ERight ); @@ -574,12 +574,10 @@ aGc.DrawRect( rect ); aGc.SetPenStyle( CGraphicsContext::ESolidPen ); aGc.SetPenColor( penColor ); - TInt selStart( iModel->LeftMark() ); TInt endPos( iModel->Length() - SelectionStart() ); TInt startPos( iModel->Length() - SelectionEnd() ); - TPtrC text( TranslatedText( iModel->Selection().Mid( startPos - selStart, - endPos - startPos ) ) ); - aGc.DrawText( text, rect, baseline, CGraphicsContext::ERight ); + TPtrC text( TranslatedText( iModel->Text( startPos, endPos - 1 ) ) ); + aGc.DrawText( text, rect, baseline, CGraphicsContext::ELeft ); } TPtr TAknPhedViewLine::TranslatedText( const TDesC& aText ) const