diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-09-07 19:22:55 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-09-07 19:22:55 +0000 |
| commit | b6007747868547d2535eb8e1d9c01064179a0468 (patch) | |
| tree | 34837db6e415cc63daa979797a5cf786bdf47e41 /src/snap.cpp | |
| parent | more consistent coverage of all shift-modes of + and - (diff) | |
| download | inkscape-b6007747868547d2535eb8e1d9c01064179a0468.tar.gz inkscape-b6007747868547d2535eb8e1d9c01064179a0468.zip | |
Also snap new guides, which are being dragged off the ruler.
(bzr r3701)
Diffstat (limited to 'src/snap.cpp')
| -rw-r--r-- | src/snap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/snap.cpp b/src/snap.cpp index 7a451f5d5..886a1216f 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -352,12 +352,12 @@ Inkscape::SnappedPoint SnapManager::constrainedSnap(Inkscape::Snapper::PointType } Inkscape::SnappedPoint SnapManager::guideSnap(NR::Point const &p, - SPGuide const &guide) const + NR::Point const &guide_normal) const { Inkscape::ObjectSnapper::DimensionToSnap snap_dim; - if (guide.normal == component_vectors[NR::Y]) { + if (guide_normal == component_vectors[NR::Y]) { snap_dim = Inkscape::ObjectSnapper::SNAP_Y; - } else if (guide.normal == component_vectors[NR::X]) { + } else if (guide_normal == component_vectors[NR::X]) { snap_dim = Inkscape::ObjectSnapper::SNAP_X; } else { g_warning("WARNING: snapping of angled guides is not supported yet!"); |
