equal
deleted
inserted
replaced
523 |
523 |
524 // Get richtext control |
524 // Get richtext control |
525 CEikCaptionedControl* capControl = |
525 CEikCaptionedControl* capControl = |
526 iDisplayTextIconDialog->GetControlByControlType |
526 iDisplayTextIconDialog->GetControlByControlType |
527 ( EEikCtRichTextEditor ); |
527 ( EEikCtRichTextEditor ); |
528 CCoeControl* coeControl = capControl->iControl; |
528 CCoeControl* coeControl = NULL; |
|
529 if ( capControl ) |
|
530 { |
|
531 coeControl = capControl->iControl; |
|
532 } |
|
533 if ( !coeControl ) |
|
534 { |
|
535 User::Leave( KErrUnknown ); |
|
536 } |
529 CEikRichTextEditor* rtxtEditor = |
537 CEikRichTextEditor* rtxtEditor = |
530 reinterpret_cast<CEikRichTextEditor*>( coeControl ); |
538 reinterpret_cast<CEikRichTextEditor*>( coeControl ); |
531 |
539 |
532 if ( !aSelfExplanatoryIcon ) |
540 if ( !aSelfExplanatoryIcon ) |
533 { |
541 { |