Code

r11516@tres: ted | 2006-04-26 21:30:18 -0700
[inkscape.git] / src / object-snapper.cpp
index 3d583b70950e2959efe7c8b6bdd466b369549558..6146c11b8584b8cbacc9a8a113eb70565a1da49d 100644 (file)
@@ -116,8 +116,10 @@ void Inkscape::ObjectSnapper::_snapPaths(Inkscape::SnappedPoint &s,
         NR::Point const p_it = p_doc * i2doc.inverse();
 
         Path *livarot_path = Path_for_item(*i, true, true);
-        if (livarot_path)
-            livarot_path->ConvertWithBackData(0.01);
+        if (!livarot_path)
+            continue;
+
+        livarot_path->ConvertWithBackData(0.01);
 
         /* Look for the nearest position on this SPItem to our snap point */
         NR::Maybe<Path::cut_position> const o = get_nearest_position_on_Path(livarot_path, p_it);