rework svg plugin, fast flash flush, init resize pixmaps, test edl version
[goodguy/history.git] / cinelerra-5.1 / cinelerra / mainprogress.C
index 711f61fdc2ecf5d842e6581d455d3dbd2c5b6062..295be0007ab2abe1a1731335dadb3a5ff313c55b 100644 (file)
@@ -107,8 +107,12 @@ void MainProgressBar::update_title(char *string, int default_)
        else
        if(progress_bar)
        {
+               char text[BCTEXTLEN], *cp = text, *ep = cp+sizeof(text)-1;
+               for( const unsigned char *bp = (const unsigned char *)string; *bp && cp<ep; ++bp )
+                       *cp++ = *bp >= ' ' ? *bp : ' ';
+               *cp = 0;
                mwindow->gui->lock_window("MainProgressBar::update_title");
-               mwindow->gui->show_message(string);
+               mwindow->gui->show_message(text);
                mwindow->gui->unlock_window();
        }
 }