- in SVG parser modified some imports to be one on each line

- fixed the Tcl Command BBox (leftovers from recent global changes)
- fixed some typos in strings reported by @pcb-hobbyst on FlatCAM forum
This commit is contained in:
Marius Stanciu
2020-04-28 19:34:23 +03:00
committed by Marius
parent f03d6bfda4
commit 35674c9647
9 changed files with 18 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ class TclCommandBbox(TclCommand):
('name', 'Object name for which to create bounding box. String'),
('margin', "Distance of the edges of the box to the nearest polygon."
"Float number."),
('rounded', "If the bounding box is to have rounded corners their radius is equal to the margin. "
('rounded', "If the bounding box has to have rounded corners their radius is equal to the margin. "
"True (1) or False (0)."),
('outname', 'Name of the resulting Geometry object. String.')
]),
@@ -70,7 +70,7 @@ class TclCommandBbox(TclCommand):
if obj is None:
self.raise_tcl_error("%s: %s" % (_("Object not found"), name))
if not isinstance(obj, FlatCAMGerber) and not isinstance(obj, FlatCAMGeometry):
if obj.kind != 'gerber' and obj.kind != 'geometry':
self.raise_tcl_error('%s %s: %s.' % (
_("Expected GerberObject or GeometryObject, got"), name, type(obj)))