Modified code for share Via Message
authorchitta ranjan <chitta.rs@samsung.com>
Fri, 22 Mar 2013 07:28:40 +0000 (16:28 +0900)
committerchitta ranjan <chitta.rs@samsung.com>
Fri, 22 Mar 2013 07:28:40 +0000 (16:28 +0900)
Change-Id: I153bcca73317311391a955e99229dfa00c508321
Signed-off-by: chitta ranjan <chitta.rs@samsung.com>
src/IvImageViewerForm.cpp

index a81fcb3..f94c667 100644 (file)
@@ -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);