]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagtiff.cpp
Some things needed in the base class of OS/2
[wxWidgets.git] / src / common / imagtiff.cpp
index 4cbf865fad0906765a4e08d5fdf8c8c1aa5245c3..989a1600a203b92e0486fa7418a562cc8fdd76bf 100644 (file)
@@ -157,6 +157,9 @@ TIFFwxOpen(wxOutputStream &stream, const char* name, const char* mode)
 
 bool wxTIFFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose, int index )
 {
+    if (index == -1)
+        index = 0;
+
     image->Destroy();
 
     TIFF *tif = TIFFwxOpen( stream, "image", "r" );