From 3bf599202382c089fafb435717dd0fa8aed67ce1 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 12 Aug 2019 23:34:56 +0300 Subject: [PATCH] - improved Mark Area Tool in Gerber Editor such that at each launch the previous markings are deleted --- README.md | 1 + flatcamEditors/FlatCAMGrbEditor.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 82817bac..5b6b3fbe 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ CAD program, and create G-Code for Isolation routing. - improved the FlatCAMGerber.isolate() function to work for geometry in the form of list and also in case that the elements of the list are LinearRings (like when doing the Exterior Isolation) - in NCC Tool made sure that at each run the old objects are deleted - fixed bug in camlib.Gerber.parse_lines() Gerber parser where for Allegro Gerber files the Gerber units were incorrectly detected +- improved Mark Area Tool in Gerber Editor such that at each launch the previous markings are deleted 11.08.2019 diff --git a/flatcamEditors/FlatCAMGrbEditor.py b/flatcamEditors/FlatCAMGrbEditor.py index 12eebc07..ad6f9b4e 100644 --- a/flatcamEditors/FlatCAMGrbEditor.py +++ b/flatcamEditors/FlatCAMGrbEditor.py @@ -1775,6 +1775,9 @@ class FCMarkArea(FCShapeTool): self.draw_app.hide_tool('all') self.draw_app.ma_tool_frame.show() + # clear previous marking + self.draw_app.ma_annotation.clear(update=True) + try: self.draw_app.ma_threshold__button.clicked.disconnect() except (TypeError, AttributeError):