diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-10-30 19:11:17 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-10-30 19:11:17 +0000 |
| commit | 0976c402e0e09c4fe9d7d7d6990535e693b16a58 (patch) | |
| tree | 08849d2b72f6e9d674af0fb39f59f7aaacdc4dd4 /src/live_effects/parameter/filletchamferpointarray.cpp | |
| parent | Starting poinwise code for 0.92. Add base files (diff) | |
| download | inkscape-0976c402e0e09c4fe9d7d7d6990535e693b16a58.tar.gz inkscape-0976c402e0e09c4fe9d7d7d6990535e693b16a58.zip | |
Fix a bug whith units pointed by suv
(bzr r13645.1.2)
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; } |
