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/satisfied-guide-cns.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 'src/satisfied-guide-cns.cpp')
| -rw-r--r-- | src/satisfied-guide-cns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/satisfied-guide-cns.cpp b/src/satisfied-guide-cns.cpp index ece5118c5..112930925 100644 --- a/src/satisfied-guide-cns.cpp +++ b/src/satisfied-guide-cns.cpp @@ -13,7 +13,7 @@ void satisfied_guide_cns(SPDesktop const &desktop, for (GSList const *l = nv.guides; l != NULL; l = l->next) { SPGuide &g = *SP_GUIDE(l->data); for (unsigned int i = 0; i < snappoints.size(); ++i) { - if (approx_equal(dot(g.normal_to_line, snappoints[i]), g.position)) { + if (approx_equal( sp_guide_distance_from_pt(&g, snappoints[i].to_2geom()), 0) ) { cns.push_back(SPGuideConstraint(&g, i)); } } |
