Fixed raw image load err under debugger
This commit is contained in:
@@ -128,14 +128,13 @@ skip_block: ;
|
||||
|
||||
int RawImage::loadRaw (bool loadData, bool closeFile)
|
||||
{
|
||||
ifname = safe_locale_from_utf8(filename).c_str();
|
||||
ifname = filename.c_str();
|
||||
image = NULL;
|
||||
verbose = settings->verbose;
|
||||
oprof = NULL;
|
||||
|
||||
ifp = gfopen (ifname);
|
||||
if (!ifp)
|
||||
return 3;
|
||||
ifp = gfopen (ifname); // Maps to either file map or direct fopen
|
||||
if (!ifp) return 3;
|
||||
|
||||
thumb_length = 0;
|
||||
thumb_offset = 0;
|
||||
|
@@ -884,9 +884,9 @@ int RawImageSource::load (Glib::ustring fname, bool batch) {
|
||||
}
|
||||
|
||||
ri = new RawImage(fname);
|
||||
int res = ri->loadRaw ();
|
||||
if (res)
|
||||
return res;
|
||||
int errCode = ri->loadRaw ();
|
||||
if (errCode) return errCode;
|
||||
|
||||
ri->compress_image();
|
||||
if (plistener) {
|
||||
plistener->setProgress (0.8);
|
||||
|
Reference in New Issue
Block a user