diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-08-01 19:15:16 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-08-01 19:15:16 +0000 |
| commit | a45a0820bec31c1611da0c8de6ecfec218d2419a (patch) | |
| tree | 39a36f8323928a800aebc7266cce7e3bfadec308 /src/display | |
| parent | replace matrix division code. (diff) | |
| download | inkscape-a45a0820bec31c1611da0c8de6ecfec218d2419a.tar.gz inkscape-a45a0820bec31c1611da0c8de6ecfec218d2419a.zip | |
2geomify a lot of NR::Points to Geom::Point
(bzr r6513)
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/canvas-axonomgrid.cpp | 4 | ||||
| -rw-r--r-- | src/display/guideline.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/display/canvas-axonomgrid.cpp b/src/display/canvas-axonomgrid.cpp index 2bfac655e..49ca07ca7 100644 --- a/src/display/canvas-axonomgrid.cpp +++ b/src/display/canvas-axonomgrid.cpp @@ -708,8 +708,8 @@ CanvasAxonomGridSnapper::_getSnapLines(NR::Point const &p) const // The vertical grid line is at the intersection of two angled grid lines. // Now go find that intersection! Geom::Point result; - Geom::IntersectorKind is = line_intersection(norm_x.to_2geom(), norm_x[NR::Y]*y_proj_along_x_max, - norm_z.to_2geom(), norm_z[NR::Y]*y_proj_along_z_max, + Geom::IntersectorKind is = line_intersection(norm_x, norm_x[NR::Y]*y_proj_along_x_max, + norm_z, norm_z[NR::Y]*y_proj_along_z_max, result); // Determine which half of the parallellogram to use diff --git a/src/display/guideline.cpp b/src/display/guideline.cpp index b1fc7501c..e2e014eff 100644 --- a/src/display/guideline.cpp +++ b/src/display/guideline.cpp @@ -200,7 +200,7 @@ static double sp_guideline_point(SPCanvasItem *item, NR::Point p, SPCanvasItem * *actual_item = item; Geom::Point vec(gl->normal_to_line[Geom::X], - gl->normal_to_line[Geom::Y]); - double distance = Geom::dot((p.to_2geom() - gl->point_on_line), vec); + double distance = Geom::dot((p - gl->point_on_line), vec); return MAX(fabs(distance)-1, 0); } |
