- fixed an error in Gerber Parser; the initial values for currnet_x, current_y were None but should have been 0.0

- limited the lower limit of angle of V-tip to a value of 1 because 0 makes no sense
This commit is contained in:
Marius Stanciu 2020-02-02 15:54:09 +02:00 committed by Marius
parent 1be1851ac7
commit c7074d71ba
4 changed files with 11 additions and 9 deletions

View File

@ -13,6 +13,8 @@ CAD program, and create G-Code for Isolation routing.
- fixed issue #376 where the V-Shape parameters from Gerber UI are not transfered to the resulting Geometry object if the 'combine' checkbox is not checked in the Gerber UI
- in Excellon UI, if Basic application mode is selected in Preferences, the Plot column 'P' is hidden now because some inexperienced users mistake this column checkboxes for tool selection
- fixed an error in Gerber Parser; the initial values for currnet_x, current_y were None but should have been 0.0
- limited the lower limit of angle of V-tip to a value of 1 because 0 makes no sense
31.01.2020

View File

@ -327,7 +327,7 @@ class GerberObjectUI(ObjectUI):
"In degree.")
)
self.tipangle_spinner = FCDoubleSpinner()
self.tipangle_spinner.set_range(0, 180)
self.tipangle_spinner.set_range(1, 180)
self.tipangle_spinner.set_precision(self.decimals)
self.tipangle_spinner.setSingleStep(5)
self.tipangle_spinner.setWrapping(True)
@ -1628,7 +1628,7 @@ class GeometryObjectUI(ObjectUI):
)
self.tipangle_entry = FCDoubleSpinner()
self.tipangle_entry.set_precision(self.decimals)
self.tipangle_entry.set_range(0.0, 180.0)
self.tipangle_entry.set_range(1.0, 180.0)
self.tipangle_entry.setSingleStep(1)
self.grid3.addWidget(self.tipanglelabel, 2, 0)

View File

@ -2235,7 +2235,7 @@ class GerberAdvOptPrefGroupUI(OptionsGroupUI):
"In degree.")
)
self.tipangle_spinner = FCSpinner()
self.tipangle_spinner.set_range(0, 180)
self.tipangle_spinner.set_range(1, 180)
self.tipangle_spinner.setSingleStep(5)
self.tipangle_spinner.setWrapping(True)
grid0.addWidget(self.tipanglelabel, 5, 0)
@ -5065,7 +5065,7 @@ class ToolsNCCPrefGroupUI(OptionsGroupUI):
"In degree."))
self.tipangle_entry = FCDoubleSpinner()
self.tipangle_entry.set_precision(self.decimals)
self.tipangle_entry.set_range(-360, 360)
self.tipangle_entry.set_range(1, 180)
self.tipangle_entry.setSingleStep(5)
self.tipangle_entry.setWrapping(True)
@ -5615,7 +5615,7 @@ class ToolsPaintPrefGroupUI(OptionsGroupUI):
"In degree."))
self.tipangle_entry = FCDoubleSpinner()
self.tipangle_entry.set_precision(self.decimals)
self.tipangle_entry.set_range(0.0000, 180.0000)
self.tipangle_entry.set_range(1.0000, 180.0000)
self.tipangle_entry.setSingleStep(5)
self.tipangle_entry.setObjectName(_("V-Tip Angle"))

View File

@ -394,10 +394,10 @@ class Gerber(Geometry):
current_operation_code = None
# Current coordinates
current_x = None
current_y = None
previous_x = None
previous_y = None
current_x = 0
current_y = 0
previous_x = 0
previous_y = 0
current_d = None