X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Ftitler%2Ftitler.C;h=4bd0b69b3f5c63ce454e5cd8355f91316b644208;hb=3305343c3d9bfb889f6892e7821cc0e2d68669de;hp=d0f4f681ca08fddd629e7cffa36f392c6aa8317f;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/titler/titler.C b/cinelerra-5.1/plugins/titler/titler.C index d0f4f681..4bd0b69b 100644 --- a/cinelerra-5.1/plugins/titler/titler.C +++ b/cinelerra-5.1/plugins/titler/titler.C @@ -1339,7 +1339,8 @@ int TitleParser::wget(wchar_t &wch) int ich; while( (ich=wnext()) >= 0 ) { if( ich == '\\' ) { - if( (ich=wnext()) == '\n' ) continue; + if( (ich=wnext()) < 0 ) break; + if( !ich || ich == '\n' ) continue; wch = ich; return 0; } @@ -2465,7 +2466,6 @@ void TitleMain::update_gui() window->lock_window("TitleMain::update_gui"); window->update(); window->unlock_window(); - window->color_thread->update_gui(config.color, 0); } } }