diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-12-19 00:01:46 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-12-19 00:01:46 +0000 |
| commit | 0b00c1f72ff8717f41b39334672e9386e4523a4f (patch) | |
| tree | eea2e7aac8ed7ef79ae249578e1bf802c5c10271 /src/guide-snapper.cpp | |
| parent | Introduce verb, menu item and shortcut for the global snapping toggle (diff) | |
| download | inkscape-0b00c1f72ff8717f41b39334672e9386e4523a4f.tar.gz inkscape-0b00c1f72ff8717f41b39334672e9386e4523a4f.zip | |
rename guide parameters to match snapping code naming convention.
start conversion to use point_on_line instead of position.
(bzr r4257)
Diffstat (limited to 'src/guide-snapper.cpp')
| -rw-r--r-- | src/guide-snapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guide-snapper.cpp b/src/guide-snapper.cpp index b660bab9d..1e78f609a 100644 --- a/src/guide-snapper.cpp +++ b/src/guide-snapper.cpp @@ -32,8 +32,8 @@ 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 == component_vectors[NR::X]) ? NR::Point(g->position, 0) : NR::Point(0, g->position); - s.push_back(std::make_pair(g->normal, point_on_line)); + 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)); } return s; |
