diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-11-15 19:20:31 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-11-15 19:20:31 +0000 |
| commit | 4cf17a9344015106366ecf292d947abdd21724ea (patch) | |
| tree | 39f2c87e8a3c0caab61b3c771ddab298f8d4feab /src | |
| parent | Purged GTKish SP_IS_RECT_CONTEXT/SP_RECT_CONTEXT macros. (diff) | |
| download | inkscape-4cf17a9344015106366ecf292d947abdd21724ea.tar.gz inkscape-4cf17a9344015106366ecf292d947abdd21724ea.zip | |
Update Chamfer Steps to more unequivocal number, thanks to the feedback of Ivan Louette
(bzr r13714)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-fillet-chamfer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/live_effects/lpe-fillet-chamfer.cpp b/src/live_effects/lpe-fillet-chamfer.cpp index 78e24f0b8..85b4ba5b2 100644 --- a/src/live_effects/lpe-fillet-chamfer.cpp +++ b/src/live_effects/lpe-fillet-chamfer.cpp @@ -79,7 +79,7 @@ LPEFilletChamfer::LPEFilletChamfer(LivePathEffectObject *lpeobject) : radius.param_set_range(0., infinity()); radius.param_set_increments(1, 1); radius.param_set_digits(4); - chamfer_steps.param_set_range(0, 999); + chamfer_steps.param_set_range(1, 999); chamfer_steps.param_set_increments(1, 1); chamfer_steps.param_set_digits(0); helper_size.param_set_range(0, infinity()); @@ -579,7 +579,7 @@ LPEFilletChamfer::doEffect_path(std::vector<Geom::Path> const &path_in) type = std::abs(filletChamferData[counter + 1][Y]); } if (type >= 3000 && type < 4000) { - unsigned int chamferSubs = type-2999; + unsigned int chamferSubs = type-3000; Geom::Path path_chamfer; path_chamfer.start(path_out.finalPoint()); if((is_straight_curve(*curve_it1) && is_straight_curve(*curve_it2Fixed) && method != FM_BEZIER )|| method == FM_ARC){ @@ -594,7 +594,7 @@ LPEFilletChamfer::doEffect_path(std::vector<Geom::Path> const &path_in) } path_out.appendNew<Geom::LineSegment>(endArcPoint); } else if (type >= 4000 && type < 5000) { - unsigned int chamferSubs = type-3999; + unsigned int chamferSubs = type-4000; Geom::Path path_chamfer; path_chamfer.start(path_out.finalPoint()); if((is_straight_curve(*curve_it1) && is_straight_curve(*curve_it2Fixed) && method != FM_BEZIER )|| method == FM_ARC){ |
