From ded97d51977a4c064b2dca1110ec75fab4563550 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 5 Jun 2008 21:51:07 -0500 Subject: [PATCH] Fix error in progress display when creating a new project. --- Timeline/Loggable.C | 3 +++ Timeline/TLE.fl | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Timeline/Loggable.C b/Timeline/Loggable.C index 3f2ba88..9d39501 100644 --- a/Timeline/Loggable.C +++ b/Timeline/Loggable.C @@ -104,6 +104,9 @@ Loggable::replay ( FILE *fp ) off_t total = st.st_size; off_t current = 0; + if ( _progress_callback ) + _progress_callback( 0, _progress_callback_arg ); + while ( fscanf( fp, "%[^\n]\n", buf ) == 1 ) { if ( ! ( ! strcmp( buf, "{" ) || ! strcmp( buf, "}" ) ) ) diff --git a/Timeline/TLE.fl b/Timeline/TLE.fl index 9c50120..774d19a 100644 --- a/Timeline/TLE.fl +++ b/Timeline/TLE.fl @@ -554,7 +554,7 @@ delete win;} code0 {o->spacing( 10 );} } { Fl_Box {} { - label {} selected + label {} xywh {5 23 189 46} color 30 code0 {transport = o;} code1 {o->labeltype( FL_NO_LABEL );} @@ -819,13 +819,16 @@ else if ( 0 == p ) progress->hide(); } +DMESSAGE( "progress: %d%%", p ); + static char pat[10]; update_progress( progress, pat, p ); progress->redraw(); -Fl::check();} {} +Fl::check();} {selected + } } }