From 158dfd75c314bfacb9b603e47ee110e82836ba9f Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 10 Mar 2022 17:49:11 +0200 Subject: [PATCH] - fixed a typo in the Distance Plugin which made that the Delta Y value was always the same as Delta X value --- CHANGELOG.md | 1 + appPlugins/ToolDistance.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95ff44cf..815c6443 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ CHANGELOG for FlatCAM beta - fixed an issue when importing GCode which made the loaded GCode object un-plotable - fixed Film Plugin not using the set value in Preferences for the `skew type` - more work in Film Plugin, in the `ratio` skew feature +- fixed a typo in the Distance Plugin which made that the Delta Y value was always the same as Delta X value 9.03.2022 diff --git a/appPlugins/ToolDistance.py b/appPlugins/ToolDistance.py index 9c826d29..a71899c5 100644 --- a/appPlugins/ToolDistance.py +++ b/appPlugins/ToolDistance.py @@ -622,7 +622,7 @@ class Distance(AppTool): if dx: self.ui.distance_x_entry.set_value(str(self.app.dec_format(abs(dx), self.decimals))) if dy: - self.ui.distance_y_entry.set_value(str(self.app.dec_format(abs(dx), self.decimals))) + self.ui.distance_y_entry.set_value(str(self.app.dec_format(abs(dy), self.decimals))) def update_distance(self, pos, prev_pos=None): if prev_pos is None: