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:
GMT 1999 Andy Thomas 1999-11-22 23:05:31 +00:00 committed by Andy Thomas
parent 399e35b6c4
commit 70b0232405
3 changed files with 18 additions and 12 deletions

View file

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

View file

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

View file

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