--- a/uifw/AvKon/src/AknPhedView.cpp Thu Aug 19 10:11:06 2010 +0300
+++ b/uifw/AvKon/src/AknPhedView.cpp Tue Aug 31 15:28:30 2010 +0300
@@ -499,7 +499,7 @@
{
TRgb color = KRgbBlack;
AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), color,
- KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG8 );
+ KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG51 );
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, EAknsCIQsnTextColorsCG8 );
+ KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG51 );
aGc.SetPenColor( color );
TPtr buf( TranslatedText( aText ) );
aGc.DrawText( buf, aRect, aBaseline, CGraphicsContext::ERight );
@@ -574,10 +574,12 @@
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->Text( startPos, endPos - 1 ) ) );
- aGc.DrawText( text, rect, baseline, CGraphicsContext::ELeft );
+ TPtrC text( TranslatedText( iModel->Selection().Mid( startPos - selStart,
+ endPos - startPos ) ) );
+ aGc.DrawText( text, rect, baseline, CGraphicsContext::ERight );
}
TPtr TAknPhedViewLine::TranslatedText( const TDesC& aText ) const