Bugfix for darkframe manager committed on behalf of Fabio.

This commit is contained in:
Emil Martinec 2010-12-08 12:28:00 -06:00
parent 2ddb6482da
commit fa3267cf7c

View File

@ -107,8 +107,6 @@ std::list<badPix>& dfInfo::getHotPixels()
*/ */
void dfInfo::updateRawImage() void dfInfo::updateRawImage()
{ {
int H = ri->get_height();
int W = ri->get_width();
typedef unsigned int acc_t; typedef unsigned int acc_t;
if( pathNames.size() >0 ){ if( pathNames.size() >0 ){
std::list<Glib::ustring>::iterator iName = pathNames.begin(); std::list<Glib::ustring>::iterator iName = pathNames.begin();
@ -117,6 +115,8 @@ void dfInfo::updateRawImage()
delete ri; delete ri;
ri=NULL; ri=NULL;
}else{ }else{
int H = ri->get_height();
int W = ri->get_width();
ri->compress_image(); ri->compress_image();
int rSize = W*(ri->isBayer()?1:3); int rSize = W*(ri->isBayer()?1:3);
acc_t **acc = new acc_t*[H]; acc_t **acc = new acc_t*[H];