repair a/v patchgui widget placement
authorGood Guy <[email protected]>
Thu, 27 Sep 2018 01:46:55 +0000 (19:46 -0600)
committerGood Guy <[email protected]>
Thu, 27 Sep 2018 01:46:55 +0000 (19:46 -0600)
cinelerra-5.1/cinelerra/apatchgui.C
cinelerra-5.1/cinelerra/vpatchgui.C

index f41959acfd7824f20834129e5dafd54eea71aa4a..abfe57cd963998384c462cdc45bd11bee559a070 100644 (file)
@@ -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;
 }
index 2d01e0144c9cfa7bfbd7a574d28833e14b61ccc2..1095238feef887aa8b5f68ed09e8df320577986e 100644 (file)
@@ -104,8 +104,7 @@ int VPatchGUI::update(int x, int y)
                patchbay->add_subwindow(fade = new VFadePatch(mwindow, this, x1+x, y1+y,
                        patchbay->get_w() - 10));
        }
-       if( fade )
-               y1 = y2;
+       y1 = y2;
 
        y2 = y1 + mwindow->theme->mode_h;
        if( mode ) {
@@ -132,8 +131,7 @@ int VPatchGUI::update(int x, int y)
                patchbay->add_subwindow(nudge = new NudgePatch(mwindow, this, x1+x, y1+y,
                        patchbay->get_w() - x1-x - 10));
        }
-       if( mode )
-               y1 = y2;
+       y1 = y2;
 
        return y1;
 }