- 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

@@ -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"))