Commit 313097c9 authored by Gianfranco Costamagna's avatar Gianfranco Costamagna
Browse files

Adapt patch, and upstream it: https://github.com/malaterre/GDCM/pull/69

parent 2de0ed2e
Loading
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -53,7 +53,17 @@ Index: gdcm-2.8.7/Applications/Cxx/gdcmpdf.cxx
   int year, mon, day, hour, min, sec, n;
   struct tm tmStruct;
   //char buf[256];
@@ -104,7 +104,7 @@
@@ -49,7 +49,8 @@
   if (infoDict->lookup((char*)key, &obj)->isString())
 #endif
     {
-    s = obj.getString()->getCString();
+    const GooString* gs = obj.getString();
+    s = gs->getCString();
     if (s[0] == 'D' && s[1] == ':')
       {
       s += 2;
@@ -104,7 +105,7 @@
 static std::string getInfoString(Dict *infoDict, const char *key, UnicodeMap *uMap, GBool & unicode)
 {
   Object obj;