Fixed crash during search operation in email app. The crash happens only if there...
[apps/native/preloaded/Email.git] / src / EmSearchPresentationModel.cpp
index 0e75456..8d19c57 100755 (executable)
@@ -1185,7 +1185,7 @@ EnrichedTextCustomListElement::OnDraw(Tizen::Graphics::Canvas& canvas, const Tiz
                                else
                                {
                                        first = new (std::nothrow) TextElement();
-                                       first->Construct(__pMail->GetPreviewBodyText());
+                                       first->Construct(originalMessageText);
                                        first->SetFont(font);
 
                                        if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)
@@ -1204,7 +1204,7 @@ EnrichedTextCustomListElement::OnDraw(Tizen::Graphics::Canvas& canvas, const Tiz
                        {
                                TextElement* first = null;
                                first = new (std::nothrow) TextElement();
-                               first->Construct(__pMail->GetPreviewBodyText());
+                               first->Construct(originalMessageText);
                                first->SetFont(font);
 
                                if (itemStatus == LIST_ITEM_DRAWING_STATUS_NORMAL)