X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fapatchgui.C;h=abfe57cd963998384c462cdc45bd11bee559a070;hb=270d86e71b318578d56d0e8a245cf14f32cf09ac;hp=f41959acfd7824f20834129e5dafd54eea71aa4a;hpb=95f86161c3b9c422bbd04ec8f685aa7e856d6dd7;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/apatchgui.C b/cinelerra-5.1/cinelerra/apatchgui.C index f41959ac..abfe57cd 100644 --- a/cinelerra-5.1/cinelerra/apatchgui.C +++ b/cinelerra-5.1/cinelerra/apatchgui.C @@ -115,8 +115,7 @@ int APatchGUI::update(int x, int y) patchbay->add_subwindow(fade = new AFadePatch(mwindow, this, x1+x, y1+y, patchbay->get_w() - 10)); } - if( fade ) - y1 = y2; + y1 = y2; y2 = y1 + mwindow->theme->meter_h; if( meter ) { @@ -127,8 +126,7 @@ int APatchGUI::update(int x, int y) else if( h >= y2 ) { patchbay->add_subwindow(meter = new AMeterPatch(mwindow, this, x1+x, y1+y)); } - if( meter ) - y1 = y2; + y1 = y2; y2 = y1 + mwindow->theme->pan_h; if( pan ) { @@ -168,8 +166,7 @@ int APatchGUI::update(int x, int y) patchbay->add_subwindow(nudge = new NudgePatch(mwindow, this, x1+x, y1+y, patchbay->get_w() - x1-x - 10)); } - if( pan ) - y1 = y2; + y1 = y2; return y1; }