Commit 0b0742af authored by Garry R. Osgood's avatar Garry R. Osgood Committed by Garry R. Osgood

app/bezier_select.c Closes the most recent bezier segfault report; about

2000-04-22 Garry R. Osgood <gosgood@idt.net>
* app/bezier_select.c
Closes the most recent bezier segfault report;
about plotting anchor points on- and off-image.
unable to cite because bugs.gnome.org is not
well. Andrew Thomas handled the only other
buglet I'm aware of at this time.
parent 18a416f3
2000-04-22 Garry R. Osgood <gosgood@idt.net>
* app/bezier_select.c
Closes the most recent bezier segfault report;
about plotting anchor points on- and off-image.
unable to cite because bugs.gnome.org is not
well. Andrew Thomas handled the only other
buglet I'm aware of at this time.
Sat Apr 22 14:01:06 BST 2000 <alt@gimp.org>
* app/bezier_select.c
......
......@@ -1058,8 +1058,8 @@ bezier_select_button_press (Tool *tool,
bezier_add_point (bezier_sel, BEZIER_CONTROL, (gdouble)x, (gdouble)y);
bezier_sel->last_point->next = curve_start;
curve_start->prev = bezier_sel->last_point;
bezier_sel->cur_anchor = curve_start;
bezier_sel->cur_control = curve_start->next;
bezier_sel->cur_anchor = curve_start;
bezier_sel->cur_control = curve_start->next;
bezier_sel->closed = 1;
bezier_sel->state = BEZIER_EDIT;
......@@ -2393,10 +2393,10 @@ bezier_convert_line (GSList ** scanlines,
int x2,
int y2)
{
int dx, dy;
int error, inc;
int tmp;
int slope;
int dx, dy;
int error, inc;
int tmp;
double slope;
if (y1 == y2)
return;
......@@ -2419,7 +2419,7 @@ bezier_convert_line (GSList ** scanlines,
else
{
slope = (double) (y2 - y1) / (double) (x2 - x1);
x1 = x2 + (0 - y2) / slope;
x1 = x2 + (int)(0.5 + (double)(0 - y2) / slope);
y1 = 0;
}
}
......@@ -2436,7 +2436,7 @@ bezier_convert_line (GSList ** scanlines,
else
{
slope = (double) (y2 - y1) / (double) (x2 - x1);
x2 = x1 + (height - y1) / slope;
x2 = x1 + (int)(0.5 + (double)(height - y1) / slope);
y2 = height;
}
}
......
......@@ -1058,8 +1058,8 @@ bezier_select_button_press (Tool *tool,
bezier_add_point (bezier_sel, BEZIER_CONTROL, (gdouble)x, (gdouble)y);
bezier_sel->last_point->next = curve_start;
curve_start->prev = bezier_sel->last_point;
bezier_sel->cur_anchor = curve_start;
bezier_sel->cur_control = curve_start->next;
bezier_sel->cur_anchor = curve_start;
bezier_sel->cur_control = curve_start->next;
bezier_sel->closed = 1;
bezier_sel->state = BEZIER_EDIT;
......@@ -2393,10 +2393,10 @@ bezier_convert_line (GSList ** scanlines,
int x2,
int y2)
{
int dx, dy;
int error, inc;
int tmp;
int slope;
int dx, dy;
int error, inc;
int tmp;
double slope;
if (y1 == y2)
return;
......@@ -2419,7 +2419,7 @@ bezier_convert_line (GSList ** scanlines,
else
{
slope = (double) (y2 - y1) / (double) (x2 - x1);
x1 = x2 + (0 - y2) / slope;
x1 = x2 + (int)(0.5 + (double)(0 - y2) / slope);
y1 = 0;
}
}
......@@ -2436,7 +2436,7 @@ bezier_convert_line (GSList ** scanlines,
else
{
slope = (double) (y2 - y1) / (double) (x2 - x1);
x2 = x1 + (height - y1) / slope;
x2 = x1 + (int)(0.5 + (double)(height - y1) / slope);
y2 = height;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment