From fa3267cf7c4f8ab1c82a607acfa8083d7b7d6a0c Mon Sep 17 00:00:00 2001 From: Emil Martinec Date: Wed, 8 Dec 2010 12:28:00 -0600 Subject: [PATCH] Bugfix for darkframe manager committed on behalf of Fabio. --- rtengine/dfmanager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/dfmanager.cc b/rtengine/dfmanager.cc index cf7f1c576..9db8cdec9 100644 --- a/rtengine/dfmanager.cc +++ b/rtengine/dfmanager.cc @@ -107,8 +107,6 @@ std::list& dfInfo::getHotPixels() */ void dfInfo::updateRawImage() { - int H = ri->get_height(); - int W = ri->get_width(); typedef unsigned int acc_t; if( pathNames.size() >0 ){ std::list::iterator iName = pathNames.begin(); @@ -117,6 +115,8 @@ void dfInfo::updateRawImage() delete ri; ri=NULL; }else{ + int H = ri->get_height(); + int W = ri->get_width(); ri->compress_image(); int rSize = W*(ri->isBayer()?1:3); acc_t **acc = new acc_t*[H];