David Rose 22 years ago
parent
commit
e69c6b3bd6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      panda/src/pnmimagetypes/pnmFileTypeTIFF.cxx

+ 4 - 2
panda/src/pnmimagetypes/pnmFileTypeTIFF.cxx

@@ -208,8 +208,10 @@ TypeHandle PNMFileTypeTIFF::_type_handle;
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 PNMFileTypeTIFF::
 PNMFileTypeTIFF::
 PNMFileTypeTIFF() {
 PNMFileTypeTIFF() {
-  if (pnmimage_tiff_cat.is_debug()) {
-    pnmimage_tiff_cat.debug()
+  // This constructor may run at static init type, so we use the ->
+  // dereferencing convention on the notify category.
+  if (pnmimage_tiff_cat->is_debug()) {
+    pnmimage_tiff_cat->debug()
       << TIFFGetVersion() << "\n";
       << TIFFGetVersion() << "\n";
   }
   }
 }
 }