From 67c772553b40a91effe155ae5ff811c948a85356 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Tue, 28 Jan 2025 18:28:15 -0500 Subject: [PATCH] Fix typos Found via codespell --- src/Gui/Stylesheets/FreeCAD Dark.qss | 2 +- src/Gui/Stylesheets/FreeCAD Light.qss | 2 +- src/Mod/BIM/bimcommands/BimIfcQuantities.py | 2 +- src/Mod/BIM/importers/importDAE.py | 2 +- src/Mod/BIM/importers/importSH3DHelper.py | 14 +++++++------- src/Mod/Measure/App/ShapeFinder.cpp | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Gui/Stylesheets/FreeCAD Dark.qss b/src/Gui/Stylesheets/FreeCAD Dark.qss index 2e17bbb2ea..6711d3021a 100644 --- a/src/Gui/Stylesheets/FreeCAD Dark.qss +++ b/src/Gui/Stylesheets/FreeCAD Dark.qss @@ -2469,7 +2469,7 @@ QTableCornerButton::section { QHeaderView { background-color: transparent; - margin: -1px; /* fix for misalignement*/ + margin: -1px; /* fix for misalignment*/ } QHeaderView:disabled { diff --git a/src/Gui/Stylesheets/FreeCAD Light.qss b/src/Gui/Stylesheets/FreeCAD Light.qss index db107bfe66..fa2579e8dd 100644 --- a/src/Gui/Stylesheets/FreeCAD Light.qss +++ b/src/Gui/Stylesheets/FreeCAD Light.qss @@ -2462,7 +2462,7 @@ QTableCornerButton::section { QHeaderView { background-color: transparent; /* text-align: bottom; */ - margin: -1px; /* fix for misalignement*/ + margin: -1px; /* fix for misalignment*/ selection-background-color: @ThemeAccentColor1; } diff --git a/src/Mod/BIM/bimcommands/BimIfcQuantities.py b/src/Mod/BIM/bimcommands/BimIfcQuantities.py index d36850be03..f1ea3d0b19 100644 --- a/src/Mod/BIM/bimcommands/BimIfcQuantities.py +++ b/src/Mod/BIM/bimcommands/BimIfcQuantities.py @@ -318,7 +318,7 @@ class BIM_IfcQuantities: return txt def get_row(self, name): - """Returns the row number correspinding to the given object name""" + """Returns the row number corresponding to the given object name""" for i in range(self.qmodel.rowCount()): if self.qmodel.item(i).toolTip().split(" ")[0] == name: diff --git a/src/Mod/BIM/importers/importDAE.py b/src/Mod/BIM/importers/importDAE.py index d3749559da..9a3797dae4 100644 --- a/src/Mod/BIM/importers/importDAE.py +++ b/src/Mod/BIM/importers/importDAE.py @@ -166,7 +166,7 @@ def read(filename): # Print the errors that occurred during reading. if col.errors: - FreeCAD.Console.PrintWarning(translate("BIM", "File was read but some errors occured:") + "\n") + FreeCAD.Console.PrintWarning(translate("BIM", "File was read but some errors occurred:") + "\n") for e in col.errors: FreeCAD.Console.PrintWarning(str(e) + "\n") diff --git a/src/Mod/BIM/importers/importSH3DHelper.py b/src/Mod/BIM/importers/importSH3DHelper.py index d4e16fe834..3674e2e4b0 100644 --- a/src/Mod/BIM/importers/importSH3DHelper.py +++ b/src/Mod/BIM/importers/importSH3DHelper.py @@ -1004,7 +1004,7 @@ class LevelHandler(BaseHandler): # not sorted and do not form a "chain". Therefore, sort them, # recreate the wire while also rounding the precision of the # Vertices in order to avoid not closing because the points - # are not close enougth + # are not close enough wire = Part.Wire(Part.__sortEdges__(self._round(sv.Shape.Edges))) if not wire.isClosed(): _wrn(f"Projected Face for {object.Label} does not produce a closed wire. Not adding to slab construction ...") @@ -1768,8 +1768,8 @@ class WallHandler(BaseHandler): The face names are suitable for selection later on when creating the Facebinders and baseboards. Note, that this must be executed - once the wall has been completly been constructued. If a window - or door is added afterward, this will have an impact on what is + once the wall has been completely constructed. If a window or + door is added afterward, this will have an impact on what is considered the left and right side of the wall Args: @@ -1781,7 +1781,7 @@ class WallHandler(BaseHandler): right side of the wall """ # In order to handle curved walls, take the oriented line (from - # start to end) that pass throuh the center of gravity of the wall + # start to end) that pass through the center of gravity of the wall # Hopefully the COG of the face will always be on the correct side # of the COG of the wall wall_start = wall.BaseObjects[2].Start @@ -1962,7 +1962,7 @@ class DoorOrWindowHandler(BaseFurnitureHandler): center = coord_sh2fc(App.Vector(x_center, y_center, z_center)) center.z += floor.Placement.Base.z - # First create a solid representing the window countour and find the + # First create a solid representing the window contour and find the # walls containing that window width = dim_sh2fc(elm.get('width')) depth = dim_sh2fc(elm.get('depth')) @@ -2379,8 +2379,8 @@ def _color_section(section): def set_shininess(obj, shininess): - # TODO: it seems a shininess of 0 means the wall loose its - # color. We leave it at the default setting untill a later time + # TODO: it seems a shininess of 0 means the wall looses its + # color. We'll leave it at the default setting until a later time return if not App.GuiUp or not shininess: return diff --git a/src/Mod/Measure/App/ShapeFinder.cpp b/src/Mod/Measure/App/ShapeFinder.cpp index 2d70e64342..3d3fd6232a 100644 --- a/src/Mod/Measure/App/ShapeFinder.cpp +++ b/src/Mod/Measure/App/ShapeFinder.cpp @@ -321,8 +321,8 @@ ShapeFinder::getGlobalTransform(const App::DocumentObject& rootObject, const std } -//! trys to get the global position and scale for a object with no information about the path -//! through the tree from a root to cursor object. +//! tries to get the global position and scale for a object with no information about the +//! path through the tree from a root to cursor object. std::pair ShapeFinder::getGlobalTransform(const App::DocumentObject* cursorObject) {