diff options
| author | Jabiertxof <jtx@jtx> | 2016-12-18 23:35:19 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2016-12-18 23:35:19 +0000 |
| commit | 8b8a183534d1bd9bfec78239294b0959b97defdd (patch) | |
| tree | 6bc0d7496fa7dcf03b4d99481153534de8468a61 | |
| parent | Use Geom::Reflection instead custom method an copy rotate and mirror LPE (diff) | |
| download | inkscape-8b8a183534d1bd9bfec78239294b0959b97defdd.tar.gz inkscape-8b8a183534d1bd9bfec78239294b0959b97defdd.zip | |
Some coding style fixes
(bzr r15332)
| -rw-r--r-- | src/live_effects/lpe-mirror_symmetry.cpp | 6 |
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 67d932e84..07c9f6f99 100644 --- a/src/live_effects/lpe-mirror_symmetry.cpp +++ b/src/live_effects/lpe-mirror_symmetry.cpp @@ -197,8 +197,8 @@ LPEMirrorSymmetry::doEffect_path (Geom::PathVector const & path_in) path_out = pathv_to_linear_and_cubic_beziers(path_in); } - Geom::Line ls((Geom::Point)start_point,(Geom::Point)end_point); - Geom::Affine m = Geom::reflection (ls.vector(), (Geom::Point)start_point); + Geom::Line line_separation((Geom::Point)start_point, (Geom::Point)end_point); + Geom::Affine m = Geom::reflection (line_separation.vector(), (Geom::Point)start_point); if (fuse_paths && !discard_orig_path) { for (Geom::PathVector::const_iterator path_it = original_pathv.begin(); @@ -225,7 +225,7 @@ LPEMirrorSymmetry::doEffect_path (Geom::PathVector const & path_in) } Geom::Point s = start_point; Geom::Point e = end_point; - double dir = ls.angle(); + double dir = line_separation.angle(); double diagonal = Geom::distance(Geom::Point(boundingbox_X.min(),boundingbox_Y.min()),Geom::Point(boundingbox_X.max(),boundingbox_Y.max())); Geom::Rect bbox(Geom::Point(boundingbox_X.min(),boundingbox_Y.min()),Geom::Point(boundingbox_X.max(),boundingbox_Y.max())); double size_divider = Geom::distance(center_point, bbox) + diagonal; |
