From fd5d2d03c2df40c9892230c289d6f8292cdab753 Mon Sep 17 00:00:00 2001 From: Michael Ezra Date: Sat, 5 May 2012 13:44:55 -0400 Subject: [PATCH] Fix for thumbnail rotation for Leaf, Mamiya and Phase One (Thanks Torger!); issue 766 --- rtengine/rtthumbnail.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rtengine/rtthumbnail.cc b/rtengine/rtthumbnail.cc index e6f57071c..834d09e76 100644 --- a/rtengine/rtthumbnail.cc +++ b/rtengine/rtthumbnail.cc @@ -218,9 +218,12 @@ Thumbnail* Thumbnail::loadQuickFromRaw (const Glib::ustring& fname, RawMetaDataL tpp->autowbGreen=1.0; if (rotate && ri->get_rotateDegree() > 0) { - Image16* rot = tpp->thumbImg->rotate(ri->get_rotateDegree()); - delete tpp->thumbImg; - tpp->thumbImg = rot; + // Leaf .mos, Mamiya .mef and Phase One files have thumbnails already rotated. + if (ri->get_maker() != "Leaf" && ri->get_maker() != "Mamiya" && ri->get_maker() != "Phase One") { + Image16* rot = tpp->thumbImg->rotate(ri->get_rotateDegree()); + delete tpp->thumbImg; + tpp->thumbImg = rot; + } } tpp->init ();