From b97d510a9dd3f7d220d8543a9087c554bf96d6ee Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Tue, 13 Mar 2007 22:22:31 +0100 Subject: Modified method Image::deleteIptcTag(...) to take into account the possibility for an IPTC tag to be repeatable. --- src/libpyexiv2.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/libpyexiv2.hpp') diff --git a/src/libpyexiv2.hpp b/src/libpyexiv2.hpp index 514094a..f9cf19c 100644 --- a/src/libpyexiv2.hpp +++ b/src/libpyexiv2.hpp @@ -108,8 +108,12 @@ namespace LibPyExiv2 // Delete the required IPTC tag and return a tuple containing the // type and previous value. - // Throw an exception if the tag was not set. - boost::python::tuple deleteIptcTag(std::string key); + // If the key references a repeatable tag, the parameter index (starting + // from 0 like a list index) is used to determine which of the + // repetitions is to be deleted. + // Throw an exception if the tag was not set or if the index is greater + // than the highest existing one. + boost::python::tuple deleteIptcTag(std::string key, unsigned int index); // Read and write access to the thumbnail embedded in the image. -- cgit