summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/filletchamferpointarray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/parameter/filletchamferpointarray.cpp')
-rw-r--r--src/live_effects/parameter/filletchamferpointarray.cpp9
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;
}