Code

redo NR::Maybe to be less clever
[inkscape.git] / src / object-snapper.cpp
index 4a21cbc04fbfd32677913accf22567219a1ad5aa..684700b3b7f9ad873789bb8eb650ee103b5ecddf 100644 (file)
@@ -131,7 +131,7 @@ void Inkscape::ObjectSnapper::_snapPaths(Inkscape::SnappedPoint &s,
         if (o && o->t >= 0 && o->t <= 1) {
 
             /* Convert the nearest point back to desktop coordinates */
-            NR::Point const o_it = get_point_on_Path(livarot_path, o.assume().piece, o.assume().t);
+            NR::Point const o_it = get_point_on_Path(livarot_path, o->piece, o->t);
             NR::Point const o_dt = desktop->doc2dt(o_it * i2doc);
 
             NR::Coord const dist = NR::L2(o_dt - p);