mirror of https://github.com/GNOME/gimp.git
app/bezier_select.c app/paths_dialog.c
Sun Jun 6 14:19:08 BST 1999 Andy Thomas <alt@gimp.org> * app/bezier_select.c * app/paths_dialog.c Applied bezier/paths patches supplied by David LE CORFEC. These fix a couple of segv. problems.
This commit is contained in:
parent
4b80eca2e3
commit
343de341e3
|
@ -1,3 +1,12 @@
|
||||||
|
|
||||||
|
Sun Jun 6 14:19:08 BST 1999 Andy Thomas <alt@gimp.org>
|
||||||
|
|
||||||
|
* app/bezier_select.c
|
||||||
|
* app/paths_dialog.c
|
||||||
|
|
||||||
|
Applied bezier/paths patches supplied by David LE CORFEC.
|
||||||
|
These fix a couple of segv. problems.
|
||||||
|
|
||||||
Sat Jun 5 17:03:15 PDT 1999 Manish Singh <yosh@gimp.org>
|
Sat Jun 5 17:03:15 PDT 1999 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* Made 1.1.6 release
|
* Made 1.1.6 release
|
||||||
|
|
|
@ -741,7 +741,8 @@ bezier_edit_point_on_curve(int x,
|
||||||
break;
|
break;
|
||||||
case BEZIER_CONTROL:
|
case BEZIER_CONTROL:
|
||||||
bezier_sel->cur_control = points;
|
bezier_sel->cur_control = points;
|
||||||
if (bezier_sel->cur_control->next->type == BEZIER_ANCHOR)
|
if (bezier_sel->cur_control->next &&
|
||||||
|
bezier_sel->cur_control->next->type == BEZIER_ANCHOR)
|
||||||
bezier_sel->cur_anchor = bezier_sel->cur_control->next;
|
bezier_sel->cur_anchor = bezier_sel->cur_control->next;
|
||||||
else
|
else
|
||||||
bezier_sel->cur_anchor = bezier_sel->cur_control->prev;
|
bezier_sel->cur_anchor = bezier_sel->cur_control->prev;
|
||||||
|
|
|
@ -1524,6 +1524,10 @@ paths_dialog_path_to_sel_callback (GtkWidget * widget, gpointer udata)
|
||||||
plp = paths_dialog->current_path_list;
|
plp = paths_dialog->current_path_list;
|
||||||
bzp = (PATHP)g_slist_nth_data(plp->bz_paths,row);
|
bzp = (PATHP)g_slist_nth_data(plp->bz_paths,row);
|
||||||
|
|
||||||
|
/* Return if no point list */
|
||||||
|
if (!bzp->path_details)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Now do the selection....*/
|
/* Now do the selection....*/
|
||||||
gdisp = gdisplays_check_valid(paths_dialog->current_path_list->gdisp,
|
gdisp = gdisplays_check_valid(paths_dialog->current_path_list->gdisp,
|
||||||
paths_dialog->gimage);
|
paths_dialog->gimage);
|
||||||
|
|
|
@ -1524,6 +1524,10 @@ paths_dialog_path_to_sel_callback (GtkWidget * widget, gpointer udata)
|
||||||
plp = paths_dialog->current_path_list;
|
plp = paths_dialog->current_path_list;
|
||||||
bzp = (PATHP)g_slist_nth_data(plp->bz_paths,row);
|
bzp = (PATHP)g_slist_nth_data(plp->bz_paths,row);
|
||||||
|
|
||||||
|
/* Return if no point list */
|
||||||
|
if (!bzp->path_details)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Now do the selection....*/
|
/* Now do the selection....*/
|
||||||
gdisp = gdisplays_check_valid(paths_dialog->current_path_list->gdisp,
|
gdisp = gdisplays_check_valid(paths_dialog->current_path_list->gdisp,
|
||||||
paths_dialog->gimage);
|
paths_dialog->gimage);
|
||||||
|
|
|
@ -741,7 +741,8 @@ bezier_edit_point_on_curve(int x,
|
||||||
break;
|
break;
|
||||||
case BEZIER_CONTROL:
|
case BEZIER_CONTROL:
|
||||||
bezier_sel->cur_control = points;
|
bezier_sel->cur_control = points;
|
||||||
if (bezier_sel->cur_control->next->type == BEZIER_ANCHOR)
|
if (bezier_sel->cur_control->next &&
|
||||||
|
bezier_sel->cur_control->next->type == BEZIER_ANCHOR)
|
||||||
bezier_sel->cur_anchor = bezier_sel->cur_control->next;
|
bezier_sel->cur_anchor = bezier_sel->cur_control->next;
|
||||||
else
|
else
|
||||||
bezier_sel->cur_anchor = bezier_sel->cur_control->prev;
|
bezier_sel->cur_anchor = bezier_sel->cur_control->prev;
|
||||||
|
|
Loading…
Reference in New Issue