textinput/peninputcommonctrls/src/peninputselectionlist/peninputcommonchoicelist.cpp
equal
deleted
inserted
replaced
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 |