From 30d899ad89fba31eaa540939889d2eab29997cb8 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Fri, 11 Mar 2022 14:55:59 +0200 Subject: [PATCH] - in Distance Plugin made sure that the 0.0 value for the angle is displayed --- CHANGELOG.md | 1 + appPlugins/ToolDistance.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3bf0355..7081d2ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ CHANGELOG for FlatCAM beta - made sure that on canvas context menu pop-up, some actions are disabled if there is no object selected - made sure that on canvas context menu pop-up, if 'Properties' action is clicked and there is no object selected then the Properties tab is selected - in the Grid Toolbar, the Grid Y entry is now by default hidden and shown only when there is a need (grid gap link is disabled) in order to maximize the status bar space availability +- in Distance Plugin made sure that the 0.0 value for the angle is displayed 10.03.2022 diff --git a/appPlugins/ToolDistance.py b/appPlugins/ToolDistance.py index a71899c5..53c490a4 100644 --- a/appPlugins/ToolDistance.py +++ b/appPlugins/ToolDistance.py @@ -594,7 +594,7 @@ class Distance(AppTool): return angle def display_angle(self, val): - if val: + if val is not None: self.ui.angle_entry.set_value(str(self.app.dec_format(val, self.decimals))) def display_start(self, val):