From 28b31a2ad2367235dcc5f8686476692c5ea26aa4 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Sun, 28 Aug 2011 21:31:59 +0000 Subject: [PATCH] Removed double TIFFSetField call for setting TIFFTAG_ORIENTATION. Setting the same TIFF tag with the same value once is enough. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/imagtiff.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/imagtiff.cpp b/src/common/imagtiff.cpp index 5229f62fdf..fff70bfa64 100644 --- a/src/common/imagtiff.cpp +++ b/src/common/imagtiff.cpp @@ -552,7 +552,6 @@ bool wxTIFFHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbo return false; } - TIFFSetField(tif, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT); TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, (uint32)image->GetWidth()); TIFFSetField(tif, TIFFTAG_IMAGELENGTH, (uint32)image->GetHeight()); TIFFSetField(tif, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);