Avoid snapshotting uncreatable loggable classes.

This commit is contained in:
Jonathan Moore Liles 2008-04-20 19:45:58 -05:00
parent 8a927c8876
commit 4160721c65
2 changed files with 2 additions and 2 deletions

View File

@ -341,6 +341,7 @@ Loggable::snapshot( const char *file )
for ( int i = 0; i < _log_id; ++i ) for ( int i = 0; i < _log_id; ++i )
{ {
if ( _class_map[ string( _loggables[ i ]->class_name() ) ] )
_loggables[ i ]->log_create(); _loggables[ i ]->log_create();
} }

View File

@ -43,7 +43,6 @@ class Sequence_Widget;
class Sequence : public Fl_Widget, public Loggable class Sequence : public Fl_Widget, public Loggable
{ {
static queue <Sequence_Widget *> _delete_queue; static queue <Sequence_Widget *> _delete_queue;
protected: protected: