X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Fgwindowgui.C;h=bc250716b68b3937500159f6c779b21a0499d037;hb=fb3e53778e49a406768506de9bf8edfd3d4c36e6;hp=3bcb853ef4b30e3eef5e88c11823db6639e3f1b3;hpb=0df48ad2d876409c5beeae2e21933a728ea76c33;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/gwindowgui.C b/cinelerra-5.1/cinelerra/gwindowgui.C index 3bcb853e..bc250716 100644 --- a/cinelerra-5.1/cinelerra/gwindowgui.C +++ b/cinelerra-5.1/cinelerra/gwindowgui.C @@ -268,6 +268,7 @@ void GWindowGUI::create_objects() } if( !vframe ) { int wh = toggle->get_h() - yS(4); + if( wh < 1 ) wh = 1; GWindowColorButton *color_button = new GWindowColorButton(toggle, get_w()-wh-ys10, y+yS(2), wh, color); add_tool(color_button);