(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 22 Feb 2014 22:36:29 +0000 (22:36 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 22 Feb 2014 22:36:29 +0000 (22:36 +0000)
coders/tiff.c

index 64a6c22c8290bbd001e0ea1029002f65f240ba05..928950eba70e513c4737ab788f85e5aca606e75b 100644 (file)
@@ -2565,7 +2565,9 @@ static void TIFFSetProperties(TIFF *tiff,Image *image,ExceptionInfo *exception)
   const char
     *value;
 
-  (void) TIFFSetField(tiff,TIFFTAG_DOCUMENTNAME,image->filename);
+  value=GetImageProperty(image,"tiff:document",exception);
+  if (value != (const char *) NULL)
+    (void) TIFFSetField(tiff,TIFFTAG_DOCUMENTNAME,value);
   value=GetImageProperty(image,"tiff:hostcomputer",exception);
   if (value != (const char *) NULL)
     (void) TIFFSetField(tiff,TIFFTAG_HOSTCOMPUTER,value);