X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ftransition.C;h=28c9079be08e04e9857141a80bcdb07abb396359;hb=ca4207ccb98b0ce69a33461aaed0ad6b5504cbc2;hp=f321c47235233e73351101a6d3439610c95c5ac5;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/transition.C b/cinelerra-5.1/cinelerra/transition.C index f321c472..28c9079b 100644 --- a/cinelerra-5.1/cinelerra/transition.C +++ b/cinelerra-5.1/cinelerra/transition.C @@ -160,8 +160,7 @@ void Transition::save_xml(FileXML *file) file->tag.set_property("TITLE", title); file->tag.set_property("LENGTH", length); file->append_tag(); - if(on) - { + if( on ) { file->tag.set_title("ON"); file->append_tag(); file->tag.set_title("/ON"); @@ -175,36 +174,20 @@ void Transition::save_xml(FileXML *file) void Transition::load_xml(FileXML *file) { - int result = 0; file->tag.get_property("TITLE", title); Plugin::fix_plugin_title(title); length = file->tag.get_property("LENGTH", length); on = 0; - do{ - result = file->read_tag(); - if(!result) - { - if(file->tag.title_is("/TRANSITION")) - { - result = 1; - } - else - if(file->tag.title_is("ON")) - { - on = 1; - } - else - if(file->tag.title_is("KEYFRAME")) - { - keyframes->default_auto->load(file);; - } - } - }while(!result); + while( !file->read_tag() ) { + if( file->tag.title_is("/TRANSITION") ) break; + if( file->tag.title_is("ON") ) { on = 1; continue; } + if( file->tag.title_is("KEYFRAME") ) + keyframes->default_auto->load(file);; + } } - int Transition::popup_transition(int x, int y) { // if(mwindow->session->tracks_vertical)