X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b47c832e5529dc6c632536b4665a005f0a85aec8..2121eb69fa8d49f4484f7170159e61f2e8885de4:/src/tiff/tif_flush.c diff --git a/src/tiff/tif_flush.c b/src/tiff/tif_flush.c index 375bcbedb4..6746e1e2e2 100644 --- a/src/tiff/tif_flush.c +++ b/src/tiff/tif_flush.c @@ -45,6 +45,12 @@ TIFFFlush(TIFF* tif) /* * Flush buffered data to the file. + * + * Frank Warmerdam'2000: I modified this to return 1 if TIFF_BEENWRITING + * is not set, so that TIFFFlush() will proceed to write out the directory. + * The documentation says returning 1 is an error indicator, but not having + * been writing isn't exactly a an error. Hopefully this doesn't cause + * problems for other people. */ int TIFFFlushData(TIFF* tif) @@ -58,3 +64,4 @@ TIFFFlushData(TIFF* tif) } return (TIFFFlushData1(tif)); } +