textinput/peninputcommonctrls/src/peninputselectionlist/peninputcommonchoicelist.cpp
branchRCL_3
changeset 3 f5a1e66df979
parent 0 eb1f2e154e89
child 9 e6a39382bb9c
equal deleted inserted replaced
0:eb1f2e154e89 3:f5a1e66df979
   243     textLayout.DrawText(*BitGc(), ItemByIndex(aIndex)->iText, ETrue, color);
   243     textLayout.DrawText(*BitGc(), ItemByIndex(aIndex)->iText, ETrue, color);
   244 	}
   244 	}
   245 
   245 
   246 EXPORT_C void CPeninputCommonChoiceList::SetListColumnNumWithLafL( TInt aMaxCount)
   246 EXPORT_C void CPeninputCommonChoiceList::SetListColumnNumWithLafL( TInt aMaxCount)
   247 	{
   247 	{
   248 	if( iLastColumnNum == aMaxCount )
   248 	if( iLastColumnNum == aMaxCount || aMaxCount < 1 )
   249 		return;
   249 		return;
   250 	
   250 	
   251 	iLastColumnNum  = aMaxCount;
   251 	iLastColumnNum  = aMaxCount;
   252 	RemoveAllItemsRect();	
   252 	RemoveAllItemsRect();	
   253 	
   253