From b736c7decc2e5881a47e8e5c60dd9da3458470cf Mon Sep 17 00:00:00 2001 From: luz paz Date: Mon, 6 Sep 2021 06:22:02 -0400 Subject: [PATCH 1/3] Path: Fix PathScripts/PathJobGui.py typo bug --- src/Mod/Path/PathScripts/PathJobGui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathJobGui.py b/src/Mod/Path/PathScripts/PathJobGui.py index 209004f193..cc322b5069 100644 --- a/src/Mod/Path/PathScripts/PathJobGui.py +++ b/src/Mod/Path/PathScripts/PathJobGui.py @@ -460,7 +460,7 @@ class StockCreateBoxEdit(StockEdit): def getFields(self, obj, fields=None): if fields is None: - fields = ["length", "widht", "height"] + fields = ["length", "width", "height"] try: if self.IsStock(obj): if "length" in fields: From 60568ec32f68f60e704725cb5af15957df83e77e Mon Sep 17 00:00:00 2001 From: luz paz Date: Mon, 6 Sep 2021 10:24:39 -0400 Subject: [PATCH 2/3] Draft: fix comment typo --- src/Mod/Draft/draftguitools/gui_groups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/draftguitools/gui_groups.py b/src/Mod/Draft/draftguitools/gui_groups.py index 666d816861..843e06e0d6 100644 --- a/src/Mod/Draft/draftguitools/gui_groups.py +++ b/src/Mod/Draft/draftguitools/gui_groups.py @@ -144,7 +144,7 @@ def moveToGroup(group): for obj in Gui.Selection.getSelection(): try: - #retreive group's visibility + #retrieve group's visibility obj.ViewObject.Visibility = group.ViewObject.Visibility group.addObject(obj) From 1f97dbc285dc726d617c7c91746df9bfb84523fd Mon Sep 17 00:00:00 2001 From: luz paz Date: Mon, 6 Sep 2021 10:29:01 -0400 Subject: [PATCH 3/3] Draft: whitespace tweak --- src/Mod/Draft/draftmake/make_hatch.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Draft/draftmake/make_hatch.py b/src/Mod/Draft/draftmake/make_hatch.py index 6188b88814..8f834f7767 100644 --- a/src/Mod/Draft/draftmake/make_hatch.py +++ b/src/Mod/Draft/draftmake/make_hatch.py @@ -26,16 +26,16 @@ import FreeCAD from draftobjects.hatch import Draft_Hatch_Object from draftviewproviders.view_hatch import Draft_Hatch_ViewProvider -def makeHatch(baseobject,filename,pattern,scale,rotation): +def makeHatch(baseobject, filename, pattern, scale, rotation): - """makeHatch(baseobject,filename,pattern,scale,rotation): Creates and returns a hatch - object made by applying the given pattern of the given PAT file to the faces of the - given base object. Given scale and rotation factors are applied to the hatch object. - The result is a Part-based object created inthe active document.""" + """makeHatch(baseobject, filename, pattern, scale, rotation): Creates and returns a + hatch object made by applying the given pattern of the given PAT file to the faces of + the given base object. Given scale and rotation factors are applied to the hatch object. + The result is a Part-based object created in the active document.""" if not FreeCAD.ActiveDocument: return - obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython","Hatch") + obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython", "Hatch") Draft_Hatch_Object(obj) obj.Base = baseobject obj.File = filename