Commit 9a8d2f57 authored by Simon Budig's avatar Simon Budig

fix some pieces of nonsensical code

Spotted by Andrey Karpov using static code analysis:
   http://www.viva64.com/en/b/0273/
parent 9a245989
......@@ -159,7 +159,7 @@ gimp_blob_square (gdouble xc,
/* Make sure we order points ccw */
if (xp * yq - yq * xp < 0)
if (xp * yq - xq * yp < 0)
{
xq = -xq;
yq = -yq;
......@@ -192,7 +192,7 @@ gimp_blob_diamond (gdouble xc,
/* Make sure we order points ccw */
if (xp * yq - yq * xp < 0)
if (xp * yq - xq * yp < 0)
{
xq = -xq;
yq = -yq;
......@@ -275,7 +275,7 @@ gimp_blob_ellipse (gdouble xc,
/* Make sure we traverse ellipse in ccw direction */
if (xp * yq - yq * xp < 0)
if (xp * yq - xq * yp < 0)
{
xq = -xq;
yq = -yq;
......
......@@ -1620,7 +1620,6 @@ save_file_chooser_response (GtkFileChooser *chooser,
gfig_context->current_obj = obj;
gfig_save_callbk ();
gfig_context->current_obj = gfig_context->current_obj;
}
gtk_widget_destroy (GTK_WIDGET (chooser));
......
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