Przeglądaj źródła

- improved Mark Area Tool in Gerber Editor such that at each launch the previous markings are deleted

Marius Stanciu 6 lat temu
rodzic
commit
3bf5992023
2 zmienionych plików z 4 dodań i 0 usunięć
  1. 1 0
      README.md
  2. 3 0
      flatcamEditors/FlatCAMGrbEditor.py

+ 1 - 0
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
 

+ 3 - 0
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):