diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-08-06 21:28:34 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-08-06 21:28:34 +0000 |
| commit | f46cc1179e44ec373cfaa02c7140fda8757660cf (patch) | |
| tree | e9fb08e0305016e391d6426076110b5271295e3d /src/snap.h | |
| parent | src/helper 2geomified (diff) | |
| download | inkscape-f46cc1179e44ec373cfaa02c7140fda8757660cf.tar.gz inkscape-f46cc1179e44ec373cfaa02c7140fda8757660cf.zip | |
1) When pasting, use an offset that is a multiple of the grid pitch (got lost during a previous round of refactoring)
2) Refactor some of the pasting code
(bzr r6580)
Diffstat (limited to 'src/snap.h')
| -rw-r--r-- | src/snap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/snap.h b/src/snap.h index 966d2a543..981e91ecd 100644 --- a/src/snap.h +++ b/src/snap.h @@ -62,6 +62,8 @@ public: bool first_point = true, boost::optional<NR::Rect> const &bbox_to_snap = boost::optional<NR::Rect>() ) const; + Geom::Point multipleOfGridPitch(Geom::Point const &t) const; + // constrainedSnapReturnByRef() is preferred over constrainedSnap(), because it only returns a // point, by overwriting p, if snapping has occured; otherwise p is untouched void constrainedSnapReturnByRef(Inkscape::Snapper::PointType point_type, |
