From 4160721c65935f8f4e0aed2179d07334f8f8588d Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 20 Apr 2008 19:45:58 -0500 Subject: [PATCH] Avoid snapshotting uncreatable loggable classes. --- Timeline/Loggable.C | 3 ++- Timeline/Sequence.H | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Timeline/Loggable.C b/Timeline/Loggable.C index 5fe712e..b60f393 100644 --- a/Timeline/Loggable.C +++ b/Timeline/Loggable.C @@ -341,7 +341,8 @@ Loggable::snapshot( const char *file ) for ( int i = 0; i < _log_id; ++i ) { - _loggables[ i ]->log_create(); + if ( _class_map[ string( _loggables[ i ]->class_name() ) ] ) + _loggables[ i ]->log_create(); } fclose( _fp ); diff --git a/Timeline/Sequence.H b/Timeline/Sequence.H index 16ebafd..ee12839 100644 --- a/Timeline/Sequence.H +++ b/Timeline/Sequence.H @@ -43,7 +43,6 @@ class Sequence_Widget; class Sequence : public Fl_Widget, public Loggable { - static queue _delete_queue; protected: