mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 22:34:37 +00:00
app/bezier_select.c
Mon Nov 22 22:43:59 GMT 1999 Andy Thomas <alt@gimp.org> * app/bezier_select.c Stroking bezier paths made up of multiple segments now all get put in a single undo group.
This commit is contained in:
parent
399e35b6c4
commit
70b0232405
|
@ -1,3 +1,11 @@
|
|||
|
||||
Mon Nov 22 22:43:59 GMT 1999 Andy Thomas <alt@gimp.org>
|
||||
|
||||
* app/bezier_select.c
|
||||
|
||||
Stroking bezier paths made up of multiple segments
|
||||
now all get put in a single undo group.
|
||||
|
||||
Mon Nov 22 23:29:16 MET 1999 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/airbrush.c
|
||||
|
|
|
@ -3106,6 +3106,9 @@ bezier_stroke (BezierSelect *bezier_sel,
|
|||
BezierRenderPnts *next_rpnts;
|
||||
BezierRenderPnts *rpnts = g_new0(BezierRenderPnts,1);
|
||||
|
||||
/* Start an undo group */
|
||||
undo_push_group_start (gdisp->gimage, PAINT_CORE_UNDO);
|
||||
|
||||
redraw = bezier_gen_points(bezier_sel,open_path,rpnts);
|
||||
do
|
||||
{
|
||||
|
@ -3156,12 +3159,8 @@ bezier_stroke (BezierSelect *bezier_sel,
|
|||
g_free(rpnts);
|
||||
rpnts = next_rpnts;
|
||||
} while (rpnts);
|
||||
/* printf ("num_stroke_points: %d\ndone.\n", num_stroke_points); */
|
||||
|
||||
/* rpnts->stroke_points = NULL; */
|
||||
/* rpnts->len_stroke_points = rpnts->num_stroke_points = 0; */
|
||||
|
||||
/* g_free(rpnts); */
|
||||
/* End an undo group */
|
||||
undo_push_group_end (gdisp->gimage);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -3106,6 +3106,9 @@ bezier_stroke (BezierSelect *bezier_sel,
|
|||
BezierRenderPnts *next_rpnts;
|
||||
BezierRenderPnts *rpnts = g_new0(BezierRenderPnts,1);
|
||||
|
||||
/* Start an undo group */
|
||||
undo_push_group_start (gdisp->gimage, PAINT_CORE_UNDO);
|
||||
|
||||
redraw = bezier_gen_points(bezier_sel,open_path,rpnts);
|
||||
do
|
||||
{
|
||||
|
@ -3156,12 +3159,8 @@ bezier_stroke (BezierSelect *bezier_sel,
|
|||
g_free(rpnts);
|
||||
rpnts = next_rpnts;
|
||||
} while (rpnts);
|
||||
/* printf ("num_stroke_points: %d\ndone.\n", num_stroke_points); */
|
||||
|
||||
/* rpnts->stroke_points = NULL; */
|
||||
/* rpnts->len_stroke_points = rpnts->num_stroke_points = 0; */
|
||||
|
||||
/* g_free(rpnts); */
|
||||
/* End an undo group */
|
||||
undo_push_group_end (gdisp->gimage);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue