From e69c6b3bd6417995494ce40b10171d2f64bc7c25 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 1 Aug 2003 16:09:25 +0000 Subject: [PATCH] oops --- panda/src/pnmimagetypes/pnmFileTypeTIFF.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panda/src/pnmimagetypes/pnmFileTypeTIFF.cxx b/panda/src/pnmimagetypes/pnmFileTypeTIFF.cxx index e0102a935d..d5853f55a4 100644 --- a/panda/src/pnmimagetypes/pnmFileTypeTIFF.cxx +++ b/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"; } }