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:
BST 1999 Andy Thomas 1999-06-06 13:24:26 +00:00 committed by Andy Thomas
parent 4b80eca2e3
commit 343de341e3
5 changed files with 21 additions and 2 deletions

View File

@ -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>
* Made 1.1.6 release

View File

@ -741,7 +741,8 @@ bezier_edit_point_on_curve(int x,
break;
case BEZIER_CONTROL:
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;
else
bezier_sel->cur_anchor = bezier_sel->cur_control->prev;

View File

@ -1524,6 +1524,10 @@ paths_dialog_path_to_sel_callback (GtkWidget * widget, gpointer udata)
plp = paths_dialog->current_path_list;
bzp = (PATHP)g_slist_nth_data(plp->bz_paths,row);
/* Return if no point list */
if (!bzp->path_details)
return;
/* Now do the selection....*/
gdisp = gdisplays_check_valid(paths_dialog->current_path_list->gdisp,
paths_dialog->gimage);

View File

@ -1524,6 +1524,10 @@ paths_dialog_path_to_sel_callback (GtkWidget * widget, gpointer udata)
plp = paths_dialog->current_path_list;
bzp = (PATHP)g_slist_nth_data(plp->bz_paths,row);
/* Return if no point list */
if (!bzp->path_details)
return;
/* Now do the selection....*/
gdisp = gdisplays_check_valid(paths_dialog->current_path_list->gdisp,
paths_dialog->gimage);

View File

@ -741,7 +741,8 @@ bezier_edit_point_on_curve(int x,
break;
case BEZIER_CONTROL:
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;
else
bezier_sel->cur_anchor = bezier_sel->cur_control->prev;