- in SVG parser: made sure that the minimum number of steps to approximate an arc/circle/bezier is 10

This commit is contained in:
Marius Stanciu
2020-09-21 03:27:52 +03:00
parent d3ebb08d1f
commit 1d46b43c4f
6 changed files with 67 additions and 42 deletions

View File

@@ -8873,12 +8873,9 @@ class App(QtCore.QObject):
units = self.defaults['units'].upper()
def obj_init(geo_obj, app_obj):
if obj_type == "geometry":
geo_obj.import_svg(filename, obj_type, units=units)
elif obj_type == "gerber":
geo_obj.import_svg(filename, obj_type, units=units)
geo_obj.import_svg(filename, obj_type, units=units)
geo_obj.multigeo = True
with open(filename) as f:
file_content = f.read()
geo_obj.source_file = file_content