summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-09-24 08:00:43 +0000
committerjabiertxof <info@marker.es>2016-09-24 08:00:43 +0000
commit77adf166cf949efcd02d1b19225fc788a3479186 (patch)
tree5c29c05497a5b5d6137a0a6268c71284beaaf5fa /src
parentCode improvements on mirror symmetry (diff)
downloadinkscape-77adf166cf949efcd02d1b19225fc788a3479186.tar.gz
inkscape-77adf166cf949efcd02d1b19225fc788a3479186.zip
Typo fix for name var
(bzr r15126)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-mirror_symmetry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/live_effects/lpe-mirror_symmetry.cpp b/src/live_effects/lpe-mirror_symmetry.cpp
index a9fb36626..afb7e2230 100644
--- a/src/live_effects/lpe-mirror_symmetry.cpp
+++ b/src/live_effects/lpe-mirror_symmetry.cpp
@@ -179,12 +179,12 @@ LPEMirrorSymmetry::doEffect_path (Geom::PathVector const & path_in)
Geom::Translate m1(point_a[0], point_a[1]);
double hyp = Geom::distance(point_a, point_b);
double cos = 0;
- double sen = 0;
+ double sin = 0;
if (hyp > 0) {
cos = (point_b[0] - point_a[0]) / hyp;
- sen = (point_b[1] - point_a[1]) / hyp;
+ sin = (point_b[1] - point_a[1]) / hyp;
}
- Geom::Affine m2(cos, -sen, sen, cos, 0.0, 0.0);
+ Geom::Affine m2(cos, -sin, sin, cos, 0.0, 0.0);
Geom::Scale sca(1.0, -1.0);
Geom::Affine m = m1.inverse() * m2;