From: chitta ranjan Date: Fri, 22 Mar 2013 07:28:40 +0000 (+0900) Subject: Modified code for share Via Message X-Git-Tag: accepted/tizen_2.1/20130425.023641~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0468e5a3ebd647dfd68652245961fc6d492fbe60;p=apps%2Fosp%2FImageViewer.git Modified code for share Via Message Change-Id: I153bcca73317311391a955e99229dfa00c508321 Signed-off-by: chitta ranjan --- diff --git a/src/IvImageViewerForm.cpp b/src/IvImageViewerForm.cpp index a81fcb3..f94c667 100644 --- a/src/IvImageViewerForm.cpp +++ b/src/IvImageViewerForm.cpp @@ -1784,10 +1784,8 @@ ImageViewerForm::OnRequestMessagesAction(void) { HashMap* pDataList = new (std::nothrow) HashMap(SingleObjectDeleter); pDataList->Construct(); - pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_TYPE), - new (std::nothrow) String(filePath)); - pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_ATTACHMENTS), - new (std::nothrow) String(APPCONTROL_DATA_MMS)); + pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_TYPE),new (std::nothrow) String(APPCONTROL_DATA_MMS)); + pDataList->Add(new (std::nothrow) String(APPCONTROL_KEY_ATTACHMENTS),new (std::nothrow) String(filePath)); __pPresentationModel->StartAppControl(APPCONTROL_PROVIDER_ID_MESSAGES, APPCONTROL_OPERATION_ID_COMPOSE, pDataList, this); @@ -1892,7 +1890,7 @@ ImageViewerForm::GetQuickThumbnailN(String& filePath) if (r == E_SUCCESS) { if ( imageBuffer->GetExifOrientation() == EXIF_ORIENTATION_RIGHT_TOP || - imageBuffer->GetExifOrientation() == EXIF_ORIENTATION_LEFT_BOTTOM) + imageBuffer->GetExifOrientation() == EXIF_ORIENTATION_LEFT_BOTTOM ) { Dimension srcDim( imageBuffer->GetHeight(),imageBuffer->GetWidth()); pBitmap->Scale(srcDim);