diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-11-17 00:43:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-17 00:43:16 +0100 |
| commit | 2dae18da096e52ea0e9a274b73781d8de80ec619 (patch) | |
| tree | 24cd3eb72aa008c4f896a766c69c67e6bc19230e /fluid/Fl_Widget_Type.cxx | |
| parent | 624eda17bcee5db3dec008ff86c18ba432ee64f1 (diff) | |
Fluid: Add Undo to formula input fields. (#547)
Diffstat (limited to 'fluid/Fl_Widget_Type.cxx')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 14bba4fd5..12772eabe 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -26,6 +26,7 @@ #include "Fluid_Image.h" #include "alignment_panel.h" #include "widget_panel.h" +#include "undo.h" #include <FL/Fl.H> #include <FL/Fl_Group.H> @@ -666,6 +667,7 @@ void x_cb(Fluid_Coord_Input *i, void *v) { x_input->activate(); } else x_input->deactivate(); } else { + undo_checkpoint(); widget_i = 0; int mod = 0; for (Fl_Type *o = Fl_Type::first; o; o = o->next) { @@ -690,6 +692,7 @@ void y_cb(Fluid_Coord_Input *i, void *v) { y_input->activate(); } else y_input->deactivate(); } else { + undo_checkpoint(); widget_i = 0; int mod = 0; for (Fl_Type *o = Fl_Type::first; o; o = o->next) { @@ -714,6 +717,7 @@ void w_cb(Fluid_Coord_Input *i, void *v) { w_input->activate(); } else w_input->deactivate(); } else { + undo_checkpoint(); widget_i = 0; int mod = 0; for (Fl_Type *o = Fl_Type::first; o; o = o->next) { @@ -738,6 +742,7 @@ void h_cb(Fluid_Coord_Input *i, void *v) { h_input->activate(); } else h_input->deactivate(); } else { + undo_checkpoint(); widget_i = 0; int mod = 0; for (Fl_Type *o = Fl_Type::first; o; o = o->next) { |
