diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-10-30 19:14:36 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-10-30 19:14:36 +0000 |
| commit | 3eec2a62d7ae4c8e08c714647870bcd9e8d39298 (patch) | |
| tree | e5b4c8d9f732bbeb9633a6b74917dbe14302067e /src/live_effects/parameter/filletchamferpointarray.cpp | |
| parent | Templates. Fix typo in procedural template 'Business Card' (diff) | |
| download | inkscape-3eec2a62d7ae4c8e08c714647870bcd9e8d39298.tar.gz inkscape-3eec2a62d7ae4c8e08c714647870bcd9e8d39298.zip | |
Fix a bug whith units pointed by suv
(bzr r13647)
Diffstat (limited to 'src/live_effects/parameter/filletchamferpointarray.cpp')
| -rw-r--r-- | src/live_effects/parameter/filletchamferpointarray.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/live_effects/parameter/filletchamferpointarray.cpp b/src/live_effects/parameter/filletchamferpointarray.cpp index e2b1aba61..db24a9735 100644 --- a/src/live_effects/parameter/filletchamferpointarray.cpp +++ b/src/live_effects/parameter/filletchamferpointarray.cpp @@ -175,13 +175,8 @@ void FilletChamferPointArrayParam::recalculate_controlpoints_for_new_pwd2( last_pathv[counterPaths][counter - offset].initialPoint(), 0.1))) { if ( curve_it2 == curve_endit) { - if (last_pathv[counterPaths].size() < pathv[counterPaths].size()) { - offset = abs(last_pathv[counterPaths].size() - - pathv[counterPaths].size()); - } else if (last_pathv[counterPaths].size() > - pathv[counterPaths].size()) { - offset = (abs(last_pathv[counterPaths].size() - - pathv[counterPaths].size())) * -1; + if (last_pathv[counterPaths].size() != pathv[counterPaths].size()) { + offset = (last_pathv[counterPaths].size() - pathv[counterPaths].size()) * -1; } else { offset = 0; } |
