[BACK]Return to patch-exif-gps_cpp CVS log [TXT][DIR] Up to [local] / qmapshack / gpscorrelate / patches

Annotation of qmapshack/gpscorrelate/patches/patch-exif-gps_cpp, Revision 1.1

1.1     ! kirby       1: $OpenBSD$
        !             2: --- exif-gps.cpp.orig  Sun Apr  5 05:08:45 2009
        !             3: +++ exif-gps.cpp       Sun Mar 18 10:40:19 2012
        !             4: @@ -628,13 +628,11 @@ int WriteGPSData(char* File, struct GPSPoint* Point, c
        !             5:        ExifToWrite.add(Exiv2::ExifKey("Exif.GPSInfo.GPSTimeStamp"), Value.get());
        !             6:
        !             7:        // And we should also do a datestamp.
        !             8: -      Value = Exiv2::Value::create(Exiv2::signedRational);
        !             9: -      snprintf(ScratchBuf, 100, "%d/1 %d/1 %d/1",
        !            10: +      snprintf(ScratchBuf, 100, "%04d:%02d:%02d",
        !            11:                        TimeStamp.tm_year + 1900,
        !            12:                        TimeStamp.tm_mon + 1,
        !            13:                        TimeStamp.tm_mday);
        !            14: -      Value->read(ScratchBuf);
        !            15: -      ExifToWrite.add(Exiv2::ExifKey("Exif.GPSInfo.GPSDateStamp"), Value.get());
        !            16: +      ExifToWrite["Exif.GPSInfo.GPSDateStamp"] = ScratchBuf;
        !            17:
        !            18:        // Write the data to file.
        !            19:        Image->writeMetadata();

CVSweb