5298 aText, *wrapWidthArray, *font, buffer, ETrue ); |
5298 aText, *wrapWidthArray, *font, buffer, ETrue ); |
5299 |
5299 |
5300 CleanupStack::PopAndDestroy(); // wrapWidthArray |
5300 CleanupStack::PopAndDestroy(); // wrapWidthArray |
5301 } ); // TRAP end |
5301 } ); // TRAP end |
5302 |
5302 |
5303 // there is no layout for empty popuplist |
5303 if ( error == KErrNone ) |
5304 if ( error != KErrNone || popupList ) |
5304 { |
|
5305 n = 0; |
|
5306 for ( i = 0; i < buffer.Length(); i++ ) |
|
5307 { |
|
5308 if ( buffer[i] == '\n' ) |
|
5309 { |
|
5310 n++; |
|
5311 } |
|
5312 } |
|
5313 } |
|
5314 |
|
5315 // There is no layout for empty popuplist |
|
5316 // The second layout that 2 lines with big font is used for two lines text. |
|
5317 if ( n < 3 || error != KErrNone || popupList ) |
5305 { |
5318 { |
5306 DrawEmptyListImpl_real_DrawUpToTwoLines( aGc, aText, line1, line2, |
5319 DrawEmptyListImpl_real_DrawUpToTwoLines( aGc, aText, line1, line2, |
5307 line1length, line2length, |
5320 line1length, line2length, |
5308 font, color, buffer, |
5321 font, color, buffer, |
5309 popupList, parentRect, aSettingPageList ); |
5322 popupList, parentRect, aSettingPageList ); |