Просмотр исходного кода

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

Marius Stanciu 6 лет назад
Родитель
Сommit
3bf5992023
2 измененных файлов с 4 добавлено и 0 удалено
  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)
 - 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
 - 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
 - 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
 11.08.2019
 
 

+ 3 - 0
flatcamEditors/FlatCAMGrbEditor.py

@@ -1775,6 +1775,9 @@ class FCMarkArea(FCShapeTool):
         self.draw_app.hide_tool('all')
         self.draw_app.hide_tool('all')
         self.draw_app.ma_tool_frame.show()
         self.draw_app.ma_tool_frame.show()
 
 
+        # clear previous marking
+        self.draw_app.ma_annotation.clear(update=True)
+
         try:
         try:
             self.draw_app.ma_threshold__button.clicked.disconnect()
             self.draw_app.ma_threshold__button.clicked.disconnect()
         except (TypeError, AttributeError):
         except (TypeError, AttributeError):