From: Niels K. B. J. <nk...@us...> - 2008-07-27 14:45:15
|
Update of /cvsroot/ufraw/ufraw In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv3678 Modified Files: ufraw_ufraw.c Log Message: Fix segfault in ufraw-batch with rotated images. Index: ufraw_ufraw.c =================================================================== RCS file: /cvsroot/ufraw/ufraw/ufraw_ufraw.c,v retrieving revision 1.151 retrieving revision 1.152 diff -u -d -r1.151 -r1.152 --- ufraw_ufraw.c 21 Jul 2008 13:50:20 -0000 1.151 +++ ufraw_ufraw.c 27 Jul 2008 14:45:11 -0000 1.152 @@ -383,6 +383,12 @@ struct stat s; fstat(fileno(raw->ifp), &s); g_snprintf(uf->conf->inputModTime, max_name, "%d", (int)s.st_mtime); + + /*Reset crop coordinates between images.*/ + uf->conf->CropX1 = -1; + uf->conf->CropY1 = -1; + uf->conf->CropX2 = -1; + uf->conf->CropY2 = -1; } if (strlen(uf->conf->outputFilename)==0) { /* If output filename wasn't specified use input filename */ |