Project

General

Profile

Bug #645 » exiv2-parse-date2.patch

Vladimir Nadvornik, 15 Sep 2009 13:39

View differences:

src/convert.cpp (working copy)
809 809
            return;
810 810
        }
811 811
        XMP_DateTime datetime;
812
        SXMPUtils::ConvertToDate(value, &datetime);
812
        try {
813
            SXMPUtils::ConvertToDate(value, &datetime);
814
        }
815
        catch (const XMP_Error& e) {
816
#ifndef SUPPRESS_WARNINGS
817
            std::cerr << "Warning: Failed to convert " << from << " to " << to << " (" << e.GetErrMsg() << ")\n";
818
#endif
819
            return;
820
        }
813 821
        char buf[30];
814 822
        if (std::string(to) != "Exif.GPSInfo.GPSTimeStamp") {
815 823

  
(2-2/2)