textinput/peninputcommonctrls/src/peninputselectionlist/peninputscrollablelist.cpp
branchRCL_3
changeset 12 5e18d8c489d6
parent 11 c8fb4cf7b3ae
child 19 ac7e4d1d9209
equal deleted inserted replaced
11:c8fb4cf7b3ae 12:5e18d8c489d6
   487 	gc->SetPenColor(color);
   487 	gc->SetPenColor(color);
   488 	gc->SetPenStyle(CGraphicsContext::ESolidPen);
   488 	gc->SetPenStyle(CGraphicsContext::ESolidPen);
   489 	gc->SetPenSize(PenSize());
   489 	gc->SetPenSize(PenSize());
   490 
   490 
   491 	TBuf<KDisplayTextLen> buf;
   491 	TBuf<KDisplayTextLen> buf;
   492 	AknBidiTextUtils::ConvertToVisualAndClip(item->iText, buf, *iFont,
   492 	if ( iAlign == CGraphicsContext::ERight )
   493 										 itemRect.Width(), itemRect.Width());
   493 	    {
       
   494         AknBidiTextUtils::ConvertToVisualAndClip(item->iText, buf, *iFont,
       
   495                                          itemRect.Width(), itemRect.Width(),
       
   496                                          AknBidiTextUtils::ERightToLeft );
       
   497 	    }
       
   498 	else
       
   499 	    {
       
   500         AknBidiTextUtils::ConvertToVisualAndClip(item->iText, buf, *iFont,
       
   501                                          itemRect.Width(), itemRect.Width());
       
   502 	    }
   494 	gc->DrawText(buf, itemRect, baseLine, iAlign);
   503 	gc->DrawText(buf, itemRect, baseLine, iAlign);
   495 	gc->DiscardFont();
   504 	gc->DiscardFont();
   496     }
   505     }
   497 
   506 
   498 EXPORT_C void CFepLayoutScrollableList::ConstructL()
   507 EXPORT_C void CFepLayoutScrollableList::ConstructL()