added simplistic undo, needs polishing.

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

	* app/tools/gimpvectortool.c: added simplistic undo, needs polishing.
This commit is contained in:
Simon Budig
2003-09-01 17:10:55 +00:00
committed by Simon Budig
parent 6f1028774d
commit a6647f2d00
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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>

View File

@ -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;