summaryrefslogtreecommitdiff
path: root/src/map/transform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/transform.cpp')
-rw-r--r--src/map/transform.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/map/transform.cpp b/src/map/transform.cpp
index 5dfd8c089b..7cb0f679f3 100644
--- a/src/map/transform.cpp
+++ b/src/map/transform.cpp
@@ -79,10 +79,8 @@ void Transform::scaleBy(double ds, double cx, double cy, double duration) {
// clamp scale to min/max values
double new_scale = scale * ds;
if (new_scale < min_scale) {
- ds = min_scale / scale;
new_scale = min_scale;
} else if (new_scale > max_scale) {
- ds = max_scale / scale;
new_scale = max_scale;
}