equal
deleted
inserted
replaced
426 charFormat.iFontSpec = font->FontSpecInTwips(); |
426 charFormat.iFontSpec = font->FontSpecInTwips(); |
427 charFormatMask.SetAttrib( EAttFontTypeface ); |
427 charFormatMask.SetAttrib( EAttFontTypeface ); |
428 charFormatMask.SetAttrib( EAttFontHeight ); |
428 charFormatMask.SetAttrib( EAttFontHeight ); |
429 |
429 |
430 //can't leave here |
430 //can't leave here |
431 TRAPD(err, iParaFormatLayer->SetL( ¶Format, paraFormatMask ); |
431 if( iEditor ) |
432 iCharFormatLayer->SetL( charFormat, charFormatMask ); |
432 { |
433 iEditor->HandleTextChangedL(); ); |
433 TRAPD(err, iParaFormatLayer->SetL( ¶Format, paraFormatMask ); |
434 if( err != KErrNone ) |
434 iCharFormatLayer->SetL( charFormat, charFormatMask ); |
435 { |
435 iEditor->HandleTextChangedL(); ); |
436 CActiveScheduler::Current()->Error( err ); |
436 |
437 } |
437 |
438 |
438 if( err != KErrNone ) |
|
439 { |
|
440 CActiveScheduler::Current()->Error( err ); |
|
441 } |
|
442 } |
439 TRAP_IGNORE(iEditor->MoveDisplayL(TCursorPosition::EFPageDown) ); |
443 TRAP_IGNORE(iEditor->MoveDisplayL(TCursorPosition::EFPageDown) ); |
440 TRAP_IGNORE(iEditor->MoveDisplayL(TCursorPosition::EFPageDown) ); |
444 TRAP_IGNORE(iEditor->MoveDisplayL(TCursorPosition::EFPageDown) ); |
441 |
445 |
442 iThumbMaxPos = iEditor->ScrollBarFrame()->VerticalScrollBar()->ThumbPosition(); |
446 iThumbMaxPos = iEditor->ScrollBarFrame()->VerticalScrollBar()->ThumbPosition(); |
443 |
447 |