fixed wrong preview of crop area in thumbnails

fixes #3772
This commit is contained in:
Alberto Griggio
2017-03-24 00:11:08 +01:00
parent 98f42faeda
commit 5104eb7cd4

View File

@@ -550,9 +550,9 @@ Thumbnail* Thumbnail::loadFromRaw (const Glib::ustring& fname, RawMetaDataLocati
if (ri->get_FujiWidth() != 0) {
tpp->scale = (double) (height - ri->get_FujiWidth()) / sqrt(0.5) / h;
tpp->scale = (double) (height - ri->get_FujiWidth()) * 2.0 / (rotate_90 ? w : h);
} else {
tpp->scale = (double) height / h;
tpp->scale = (double) height / (rotate_90 ? w : h);
}
// generate histogram for auto exposure