summaryrefslogtreecommitdiff
path: root/fluid/factory.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-11-05 22:18:56 +0100
committerMatthias Melcher <github@matthiasm.com>2023-11-05 22:19:03 +0100
commite690e76da1555e61bd6bde89d00215b11352f8b2 (patch)
tree048cf12b8c35a60b0b983dbb8303f800a9b3da11 /fluid/factory.cxx
parent95daa77c497254919d17b23de56397788b291ecf (diff)
FLUID: Adds undo for all grid operations.
Diffstat (limited to 'fluid/factory.cxx')
-rw-r--r--fluid/factory.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fluid/factory.cxx b/fluid/factory.cxx
index cd25e96df..bb832af45 100644
--- a/fluid/factory.cxx
+++ b/fluid/factory.cxx
@@ -1232,7 +1232,7 @@ Fl_Type *add_new_widget_from_user(Fl_Type *inPrototype, Strategy strategy) {
if (Fl_Window_Type::popupx != 0x7FFFFFFF) {
((Fl_Grid_Type*)t->parent)->insert_child_at(((Fl_Widget_Type*)t)->o, Fl_Window_Type::popupx, Fl_Window_Type::popupy);
} else {
- ((Fl_Grid_Type*)t->parent)->insert_child(((Fl_Widget_Type*)t)->o);
+ ((Fl_Grid_Type*)t->parent)->insert_child_at_next_free_cell(((Fl_Widget_Type*)t)->o);
}
}
}