From: Niels K. B. J. <nk...@us...> - 2008-07-05 07:31:09
|
Update of /cvsroot/ufraw/ufraw In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv26748 Modified Files: ufraw_conf.c Log Message: Fix segfault in ufraw-batch. Index: ufraw_conf.c =================================================================== RCS file: /cvsroot/ufraw/ufraw/ufraw_conf.c,v retrieving revision 1.113 retrieving revision 1.114 diff -u -d -r1.113 -r1.114 --- ufraw_conf.c 30 Jun 2008 21:59:51 -0000 1.113 +++ ufraw_conf.c 5 Jul 2008 07:31:02 -0000 1.114 @@ -1125,6 +1125,12 @@ c->exifSource); buf = uf_markup_buf(buf, "<Crop>%d %d %d %d</Crop>\n", c->CropX1, c->CropY1, c->CropX2, c->CropY2); + if (c->orientation!=1 && c->rotationAngle==0) + switch (c->orientation) { + case 3: c->rotationAngle = 180; break; + case 5: c->rotationAngle = 270; break; + case 6: c->rotationAngle = 90; break; + } buf = uf_markup_buf(buf, "<Rotation>%lf</Rotation>\n", c->rotationAngle); char *log = ufraw_message(UFRAW_GET_LOG, NULL); if (log!=NULL) { |