diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2009-06-02 04:36:17 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2009-06-02 04:36:17 +0000 |
| commit | 9d1365da9d6ed6312e4f034df40aa64dec35c9e0 (patch) | |
| tree | b5d6de8cc2a3293d1b8db11dfd8fd17f7d8cfa06 /src/snap.h | |
| parent | Moved whiteboard related file to POTFILES.ignore (diff) | |
| download | inkscape-9d1365da9d6ed6312e4f034df40aa64dec35c9e0.tar.gz inkscape-9d1365da9d6ed6312e4f034df40aa64dec35c9e0.zip | |
When dragging the origin of a guide along that guide, we should use constrained snapping instead of free snapping. Also make sure that we snap to paths too, not just to guides
(bzr r7973)
Diffstat (limited to 'src/snap.h')
| -rw-r--r-- | src/snap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/snap.h b/src/snap.h index 5290ef081..ba920510f 100644 --- a/src/snap.h +++ b/src/snap.h @@ -23,6 +23,7 @@ #include "guide-snapper.h" #include "object-snapper.h" #include "snap-preferences.h" +//#include "sp-guide.h" class SPNamedView; @@ -98,7 +99,8 @@ public: bool first_point = true, Geom::OptRect const &bbox_to_snap = Geom::OptRect()) const; - void guideSnap(Geom::Point &p, Geom::Point const &guide_normal) const; + void guideFreeSnap(Geom::Point &p, Geom::Point const &guide_normal) const; + void guideConstrainedSnap(Geom::Point &p, SPGuide const &guideline) const; Inkscape::SnappedPoint freeSnapTranslation(Inkscape::SnapPreferences::PointType point_type, std::vector<std::pair<Geom::Point, int> > const &p, |
