Code

:) Wrong line Josh :D
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 8 Jan 2007 18:56:07 +0000 (18:56 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 8 Jan 2007 18:56:07 +0000 (18:56 +0000)
src/gradient-drag.cpp

index e09bedeee68cb46d88540acc12553fd59fadef1d..aaafce67e4d74d04195551ec6470646decef9b81 100644 (file)
@@ -466,7 +466,6 @@ gr_knot_moved_handler(SPKnot *knot, NR::Point const *ppointer, guint state, gpoi
             if (snap_vector) {
                 snap_vectors = g_slist_prepend (snap_vectors, snap_vector);
             }
-                       g_slist_free(snap_vectors);
         }
 
         // Move by the smallest of snap vectors:
@@ -480,6 +479,8 @@ gr_knot_moved_handler(SPKnot *knot, NR::Point const *ppointer, guint state, gpoi
             p += move;
             sp_knot_moveto (knot, &p);
         }
+
+        g_slist_free(snap_vectors);
     }
 
     dragger->point = p;