X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fgwindowgui.C;h=1fac6105e59ed24c8038f1b258fe872b28880104;hb=8568f873b356bbe6b21dd591857e1d03e1739a4e;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..1fac6105 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); @@ -293,7 +294,7 @@ void GWindowGUI::create_objects() hard_edges = toggle; break; } - if( accel ) { + if( accel ) { int x1 = get_w() - BC_Title::calculate_w(this, accel) - xs10; add_subwindow(new BC_Title(x1, y, accel)); }