uifw/AvKon/src/akntextcontrol.cpp
changeset 14 3320e4e6e8bb
parent 0 2f259fa3e83a
child 56 d48ab3b357f1
equal deleted inserted replaced
0:2f259fa3e83a 14:3320e4e6e8bb
   377 
   377 
   378  */
   378  */
   379 void CAknTextControl::SetWrappedTextIntoLabelsL(const CArrayFix<TPtrC>& aWrappedArray, TInt aNumLines, const CFont* aFont)
   379 void CAknTextControl::SetWrappedTextIntoLabelsL(const CArrayFix<TPtrC>& aWrappedArray, TInt aNumLines, const CFont* aFont)
   380 	{
   380 	{
   381 	__ASSERT_DEBUG(aNumLines == iNumberOfLines, Panic(EAknPanicSelfCheckFailure));
   381 	__ASSERT_DEBUG(aNumLines == iNumberOfLines, Panic(EAknPanicSelfCheckFailure));
   382 	aNumLines = aNumLines ; // just for fixing warning
   382 
   383 	for (TInt i=0; i < iNumberOfLines; i++)
   383 	for (TInt i=0; i < iNumberOfLines; i++)
   384 		{
   384 		{
   385 		
   385 		
   386 		if (Line(i)->BufferReserveLength() < aWrappedArray.At(i).Length())
   386 		if (Line(i)->BufferReserveLength() < aWrappedArray.At(i).Length())
   387 			Line(i)->SetBufferReserveLengthL(aWrappedArray.At(i).Length());
   387 			Line(i)->SetBufferReserveLengthL(aWrappedArray.At(i).Length());