diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-12-19 22:42:06 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-12-19 22:42:06 +0000 |
| commit | 377be2b170e6d762bf3ee6bcb3901fc56a01bc26 (patch) | |
| tree | 3d1ac62a1c9a353181b26701efd2fa12021fa300 /src/guide-snapper.cpp | |
| parent | rename guide parameters to match snapping code naming convention. (diff) | |
| download | inkscape-377be2b170e6d762bf3ee6bcb3901fc56a01bc26.tar.gz inkscape-377be2b170e6d762bf3ee6bcb3901fc56a01bc26.zip | |
guides: switch from using one position coordinate to Geom::Point point_on_line
(bzr r4258)
Diffstat (limited to '')
| -rw-r--r-- | src/guide-snapper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/guide-snapper.cpp b/src/guide-snapper.cpp index 1e78f609a..fb16382d2 100644 --- a/src/guide-snapper.cpp +++ b/src/guide-snapper.cpp @@ -32,8 +32,7 @@ Inkscape::GuideSnapper::LineList Inkscape::GuideSnapper::_getSnapLines(NR::Point for (GSList const *l = _named_view->guides; l != NULL; l = l->next) { SPGuide const *g = SP_GUIDE(l->data); - NR::Point point_on_line = (g->normal_to_line == component_vectors[NR::X]) ? NR::Point(g->position, 0) : NR::Point(0, g->position); - s.push_back(std::make_pair(g->normal_to_line, point_on_line)); + s.push_back(std::make_pair(g->normal_to_line, g->point_on_line)); } return s; |
