Auto distortion fix for portrait orientation on behalf of Guokai; see issue #582
This commit is contained in:
@@ -692,11 +692,11 @@ double ImProcFunctions::getAutoDistor (const Glib::ustring &fname, int thumb_si
|
||||
int w_raw=-1, h_raw=thumb_size;
|
||||
int w_thumb=-1, h_thumb=thumb_size;
|
||||
|
||||
Thumbnail* thumb = rtengine::Thumbnail::loadQuickFromRaw (fname, ri, w_thumb, h_thumb, 1);
|
||||
Thumbnail* thumb = rtengine::Thumbnail::loadQuickFromRaw (fname, ri, w_thumb, h_thumb, 1, FALSE);
|
||||
if (thumb == NULL)
|
||||
return 0.0;
|
||||
|
||||
Thumbnail* raw = rtengine::Thumbnail::loadFromRaw (fname, ri, w_raw, h_raw, 1);
|
||||
Thumbnail* raw = rtengine::Thumbnail::loadFromRaw (fname, ri, w_raw, h_raw, 1, FALSE);
|
||||
if (raw == NULL) {
|
||||
delete thumb;
|
||||
return 0.0;
|
||||
|
||||
Reference in New Issue
Block a user