Nabi issue resolution 40647, 40933
authorchitta ranjan <chitta.rs@samsung.com>
Tue, 11 Jun 2013 02:06:31 +0000 (11:06 +0900)
committerchitta ranjan <chitta.rs@samsung.com>
Tue, 11 Jun 2013 02:06:31 +0000 (11:06 +0900)
Change-Id: I2071f7d3310de33084d8d23d06aa75c90823b9b2
Signed-off-by: chitta ranjan <chitta.rs@samsung.com>
src/MsgMessageComposePanel.cpp

index cb94e29..08748e5 100644 (file)
@@ -2258,30 +2258,32 @@ MessageComposePanel::Run(void)
                File::Remove(mmsDataPath);
                status = MSG_RESPONSE_FAIL;
        }
-       ImageBuffer* pImageBuffer = new (std::nothrow) ImageBuffer();
-       r = pImageBuffer->Construct(__pSelectFilePath);
-       ImageBuffer* pOriginalImageBuffer = new (std::nothrow) ImageBuffer();
-       r = pOriginalImageBuffer->Construct(__pOriginalFilePath);
 
-       if (pOriginalImageBuffer && pImageBuffer)
-       {
-               ExifOrientation exifOrientation = pOriginalImageBuffer->GetExifOrientation();
-               AppLog("ExifOrientation = % d", exifOrientation);
-               if (exifOrientation == (ExifOrientation)EXIF_ORIENTATION_TOP_LEFT || exifOrientation == (ExifOrientation)EXIF_ORIENTATION_LEFT_TOP)
-               {
-                       AppLog("Image rotated 90 degree");
-                       pImageBuffer = pImageBuffer->RotateN(IMAGE_ROTATION_90);
-                       r = pImageBuffer->EncodeToFile(__pSelectFilePath, IMG_FORMAT_JPG, true, 70);
-               }
-               else if(exifOrientation == (ExifOrientation)EXIF_ORIENTATION_TOP_RIGHT || exifOrientation == (ExifOrientation)EXIF_ORIENTATION_RIGHT_TOP)
-               {
-                       AppLog("Image rotated 270 degree");
-                       pImageBuffer = pImageBuffer->RotateN(IMAGE_ROTATION_270);
-                       r = pImageBuffer->EncodeToFile(__pSelectFilePath, IMG_FORMAT_JPG, true, 70);
-               }
-               delete pImageBuffer;
-               delete pOriginalImageBuffer;
-       }
+//     ImageBuffer* pImageBuffer = new (std::nothrow) ImageBuffer();
+//     r = pImageBuffer->Construct(__pSelectFilePath);
+//     ImageBuffer* pOriginalImageBuffer = new (std::nothrow) ImageBuffer();
+//     r = pOriginalImageBuffer->Construct(__pOriginalFilePath);
+//
+//     if (pOriginalImageBuffer && pImageBuffer)
+//     {
+//             ExifOrientation exifOrientation = pOriginalImageBuffer->GetExifOrientation();
+//             AppLog("ExifOrientation = % d", exifOrientation);
+//             if (exifOrientation == (ExifOrientation)EXIF_ORIENTATION_TOP_LEFT || exifOrientation == (ExifOrientation)EXIF_ORIENTATION_LEFT_TOP)
+//             {
+//                     AppLog("Image rotated 90 degree");
+//                     pImageBuffer = pImageBuffer->RotateN(IMAGE_ROTATION_90);
+//                     r = pImageBuffer->EncodeToFile(__pSelectFilePath, IMG_FORMAT_JPG, true, 70);
+//             }
+//             else if(exifOrientation == (ExifOrientation)EXIF_ORIENTATION_TOP_RIGHT || exifOrientation == (ExifOrientation)EXIF_ORIENTATION_RIGHT_TOP)
+//             {
+//                     AppLog("Image rotated 270 degree");
+//                     pImageBuffer = pImageBuffer->RotateN(IMAGE_ROTATION_270);
+//                     r = pImageBuffer->EncodeToFile(__pSelectFilePath, IMG_FORMAT_JPG, true, 70);
+//             }
+//             delete pImageBuffer;
+//             delete pOriginalImageBuffer;
+//     }
+       
        // Send event to main thread from worker thread.
        ArrayList* pArgList = new ArrayList();
        pArgList->Construct();