From: <lu...@us...> - 2002-10-22 19:49:27
|
Update of /cvsroot/libexif/exif/exif In directory usw-pr-cvs1:/tmp/cvs-serv21161/exif Modified Files: main.c Log Message: 2002-10-22 Lutz Müller <lu...@us...> * exif/main.c: Print usage if no arguments are given. Save modified files on --remove-ifd and --remove. Index: main.c =================================================================== RCS file: /cvsroot/libexif/exif/exif/main.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- main.c 21 Oct 2002 20:03:34 -0000 1.23 +++ main.c 22 Oct 2002 19:49:23 -0000 1.24 @@ -373,6 +373,9 @@ } ed->size = 0; + /* Save the new data. */ + save_exif_data_to_file (ed, *args, fname); + } else if (ithumbnail) { /* Get rid of the old thumbnail */ @@ -537,7 +540,8 @@ } if (!tag) { - while (ed->ifd[ifd]->count) + while (ed->ifd[ifd] && + ed->ifd[ifd]->count) exif_content_remove_entry ( ed->ifd[ifd], ed->ifd[ifd]->entries[0]); @@ -556,12 +560,17 @@ exif_content_remove_entry (ed->ifd[ifd], e); } + + /* Save modified data. */ + save_exif_data_to_file (ed, *args, fname); + } else action_tag_list (*args, ed, eo.use_ids); exif_data_unref (ed); args++; } - } + } else + poptPrintUsage (ctx, stdout, 0); poptFreeContext (ctx); |