David Rose 22 年之前
父节点
当前提交
e69c6b3bd6
共有 1 个文件被更改,包括 4 次插入2 次删除
  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() {
-  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";
   }
 }