add Autosave continuous backups by Andras Reuss and Andrew-R
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / gwindowgui.C
index 3bcb853ef4b30e3eef5e88c11823db6639e3f1b3..1fac6105e59ed24c8038f1b258fe872b28880104 100644 (file)
@@ -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));
                        }