Commit a6647f2d authored by Simon Budig's avatar Simon Budig Committed by Simon Budig

added simplistic undo, needs polishing.

2003-09-01  Simon Budig  <simon@gimp.org>

	* app/tools/gimpvectortool.c: added simplistic undo, needs polishing.
parent 6f102877
2003-09-01 Simon Budig <simon@gimp.org>
* app/tools/gimpvectortool.c: added simplistic undo, needs polishing.
2003-09-01 Michael Natterer <mitch@gimp.org>
* app/gui/channels-menu.c
......@@ -24,7 +28,7 @@
* app/vectors/gimpstroke.[ch]: virtualized gimp_stroke_close.
* app/vectors/gimpbezierstroke.c: made the _close function check,
if there is an unneeded segment (CCA-Sequence with all the same
if there is an unneeded segment (ACCA-Sequence with all the same
coordinates) at the gap to be closed. If so, remove it.
2003-09-01 Tor Lillqvist <tml@iki.fi>
......@@ -34,6 +34,7 @@
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
#include "core/gimpimage-undo-push.h"
#include "core/gimplist.h"
#include "core/gimptoolinfo.h"
......@@ -290,6 +291,13 @@ gimp_vector_tool_button_press (GimpTool *tool,
gimp_draw_tool_stop (draw_tool);
}
gimp_tool_control_set_preserve (tool->control, TRUE);
if (vector_tool->vectors)
gimp_image_undo_push_vectors_mod (GIMP_ITEM (vector_tool->vectors)->gimage,
"Vectors operation",
vector_tool->vectors);
gimp_tool_control_set_preserve (tool->control, FALSE);
gimp_tool_control_activate (tool->control);
tool->gdisp = gdisp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment