diff --git a/app/blob.c b/app/blob.c index bab20109c1..eaf508e655 100644 --- a/app/blob.c +++ b/app/blob.c @@ -640,7 +640,7 @@ blob_ellipse (double xc, double yc, double xp, double yp, double xq, double yq) /* Figure out a step that will draw most of the points */ r1 = sqrt (xp * xp + yp * yp); - r2 = sqrt (xp * xp + yp * yp); + r2 = sqrt (xq * xq + yq * yq); max_radius = MAX (r1, r2); step = TABLE_SIZE; diff --git a/app/paint/gimpink-blob.c b/app/paint/gimpink-blob.c index bab20109c1..eaf508e655 100644 --- a/app/paint/gimpink-blob.c +++ b/app/paint/gimpink-blob.c @@ -640,7 +640,7 @@ blob_ellipse (double xc, double yc, double xp, double yp, double xq, double yq) /* Figure out a step that will draw most of the points */ r1 = sqrt (xp * xp + yp * yp); - r2 = sqrt (xp * xp + yp * yp); + r2 = sqrt (xq * xq + yq * yq); max_radius = MAX (r1, r2); step = TABLE_SIZE; diff --git a/app/tools/blob.c b/app/tools/blob.c index bab20109c1..eaf508e655 100644 --- a/app/tools/blob.c +++ b/app/tools/blob.c @@ -640,7 +640,7 @@ blob_ellipse (double xc, double yc, double xp, double yp, double xq, double yq) /* Figure out a step that will draw most of the points */ r1 = sqrt (xp * xp + yp * yp); - r2 = sqrt (xp * xp + yp * yp); + r2 = sqrt (xq * xq + yq * yq); max_radius = MAX (r1, r2); step = TABLE_SIZE; diff --git a/app/tools/gimpinktool-blob.c b/app/tools/gimpinktool-blob.c index bab20109c1..eaf508e655 100644 --- a/app/tools/gimpinktool-blob.c +++ b/app/tools/gimpinktool-blob.c @@ -640,7 +640,7 @@ blob_ellipse (double xc, double yc, double xp, double yp, double xq, double yq) /* Figure out a step that will draw most of the points */ r1 = sqrt (xp * xp + yp * yp); - r2 = sqrt (xp * xp + yp * yp); + r2 = sqrt (xq * xq + yq * yq); max_radius = MAX (r1, r2); step = TABLE_SIZE;