diff --git a/samples/addmoddel.cpp b/samples/addmoddel.cpp index 6fb9702e..056790d3 100644 --- a/samples/addmoddel.cpp +++ b/samples/addmoddel.cpp @@ -63,7 +63,7 @@ try { std::string date = tag.toString(); date.replace(0, 4, "2000"); tag.setValue(date); - std::cout << "Modified key \"" << key + std::cout << "Modified key \"" << tag.key() << "\", new value \"" << tag.value() << "\"\n"; // Alternatively, we can use findKey() diff --git a/test/data/addmoddel.out b/test/data/addmoddel.out index 4934f1a7..bdaf4367 100644 --- a/test/data/addmoddel.out +++ b/test/data/addmoddel.out @@ -1,7 +1,7 @@ Added a few tags the quick way. Added key "Exif.Photo.DateTimeOriginal", value "1999:12:31 23:59:59" Added key "Exif.Image.PrimaryChromaticities", value "1/2 1/3 2/3 3/4" -Modified key "Exif.Image.PrimaryChromaticities", new value "2000:12:31 23:59:59" +Modified key "Exif.Photo.DateTimeOriginal", new value "2000:12:31 23:59:59" Modified key "Exif.Image.PrimaryChromaticities", new value "1/2 1/3 88/77 3/4" Deleted key "Exif.Image.PrimaryChromaticities" 0x0110 Image Model Ascii 7 Test 1