Code

Fix compilation error introduced by my previous commit
authorDiederik van Lierop <mailat-signdiedenrezidotnl>
Fri, 12 Feb 2010 19:46:21 +0000 (20:46 +0100)
committerDiederik van Lierop <mailat-signdiedenrezidotnl>
Fri, 12 Feb 2010 19:46:21 +0000 (20:46 +0100)
src/snap.cpp

index 3cac53ebe6d74eeb90dac9b01ccb5d93f28c126c..996ec2e2c75a5551fd22dcee788222d9818755eb 100644 (file)
@@ -359,7 +359,7 @@ Inkscape::SnappedPoint SnapManager::constrainedSnap(Inkscape::SnapCandidatePoint
 
     if (!someSnapperMightSnap()) {
         // The constraint should always be enforce, so we return pp here instead of p
-        return Inkscape::SnappedPoint(pp, Inkscape::SNAPTARGET_UNDEFINED, NR_HUGE, 0, false, false);
+        return Inkscape::SnappedPoint(pp, p.getSourceType(), p.getSourceNum(), Inkscape::SNAPTARGET_UNDEFINED, NR_HUGE, 0, false, false);
     }
 
     // Then try to snap the projected point