From b0a29fde3106c4e4ead48a376c5b53f799c9408b Mon Sep 17 00:00:00 2001 From: luzpaz Date: Wed, 18 Dec 2024 22:58:42 +0000 Subject: [PATCH] Fix various typos --- src/Mod/BIM/ArchCommands.py | 4 ++-- src/Mod/BIM/nativeifc/ifc_export.py | 2 +- src/Mod/BIM/nativeifc/ifc_tools.py | 2 +- src/Mod/CAM/CAMTests/PathTestUtils.py | 2 +- src/Mod/Measure/Gui/TaskMeasure.cpp | 4 ++-- src/Mod/Spreadsheet/App/Sheet.cpp | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Mod/BIM/ArchCommands.py b/src/Mod/BIM/ArchCommands.py index 0fcf737765..2aad5db3e9 100644 --- a/src/Mod/BIM/ArchCommands.py +++ b/src/Mod/BIM/ArchCommands.py @@ -169,7 +169,7 @@ def removeComponents(objectsList,host=None): # Check if o and o.Base has Attachment Support, and # if the support is the host object itself - thus a cyclic # dependency and probably creating TNP. - # If above is postive, remove its AttachmentSupport: + # If above is positive, remove its AttachmentSupport: if hasattr(o,"Base") and o.Base: objList = [o, o.Base] else: @@ -771,7 +771,7 @@ def pruneIncluded(objectslist,strict=False): # don't consider a PartDesign_Body with a PartDesign_Clone that references obj pass elif parent.isDerivedFrom("PartDesign::SubShapeBinder") or (hasattr(parent, "TypeId") and parent.TypeId == "PartDesign::ShapeBinder"): - # don't consider a PartDesign_SubShapeBinder or PartDesign_ShapeBinder referncing this object from another object + # don't consider a PartDesign_SubShapeBinder or PartDesign_ShapeBinder referencing this object from another object pass elif hasattr(parent,"Host") and parent.Host == obj: pass diff --git a/src/Mod/BIM/nativeifc/ifc_export.py b/src/Mod/BIM/nativeifc/ifc_export.py index 4d52f9dd05..1fcf0694f1 100644 --- a/src/Mod/BIM/nativeifc/ifc_export.py +++ b/src/Mod/BIM/nativeifc/ifc_export.py @@ -234,7 +234,7 @@ def get_text(annotation): def get_dimension(annotation): """Determines if an IfcAnnotation is representing a dimension. Returns a list containing the representation, two points indicating - the mesured points, and optionally a third point indicating where + the measured points, and optionally a third point indicating where the dimension line is located, if available""" if annotation.is_a("IfcAnnotation"): diff --git a/src/Mod/BIM/nativeifc/ifc_tools.py b/src/Mod/BIM/nativeifc/ifc_tools.py index 9eaa5737be..5e46436bf1 100644 --- a/src/Mod/BIM/nativeifc/ifc_tools.py +++ b/src/Mod/BIM/nativeifc/ifc_tools.py @@ -408,7 +408,7 @@ def get_children( def get_freecad_children(obj): - """Returns the childen of this object that exist in the documemt""" + """Returns the children of this object that exist in the document""" objs = [] children = get_children(obj) diff --git a/src/Mod/CAM/CAMTests/PathTestUtils.py b/src/Mod/CAM/CAMTests/PathTestUtils.py index 3e50ccf1ac..ee0ce931d8 100644 --- a/src/Mod/CAM/CAMTests/PathTestUtils.py +++ b/src/Mod/CAM/CAMTests/PathTestUtils.py @@ -78,7 +78,7 @@ class PathTestBase(unittest.TestCase): self.assertEqual(side, Path.Geom.Side.Right) def assertCircle(self, edge, pt, r): - """Verivy that edge is a circle at given location.""" + """Verify that edge is a circle at given location.""" curve = edge.Curve self.assertIs(type(curve), Part.Circle) self.assertCoincide(curve.Center, Vector(pt.x, pt.y, pt.z)) diff --git a/src/Mod/Measure/Gui/TaskMeasure.cpp b/src/Mod/Measure/Gui/TaskMeasure.cpp index 0098f1e8be..7e02214c17 100644 --- a/src/Mod/Measure/Gui/TaskMeasure.cpp +++ b/src/Mod/Measure/Gui/TaskMeasure.cpp @@ -466,11 +466,11 @@ void TaskMeasure::onSelectionChanged(const Gui::SelectionChanges& msg) // If the control modifier is pressed, the object is just added to the current measurement // If the control modifier is not pressed, a new measurement will be started. If autosave is on, // the old measurement will be saved otherwise discharded. Shift inverts the autosave behaviour - // temporarly + // temporarily const auto modifier = QGuiApplication::keyboardModifiers(); const bool ctrl = (modifier & Qt::ControlModifier) > 0; const bool shift = (modifier & Qt::ShiftModifier) > 0; - // shift inverts the current state temporarly + // shift inverts the current state temporarily const auto autosave = (mAutoSave && !shift) || (!mAutoSave && shift); if ((!ctrl && Selection().getSelectionStyle() == SelectionStyle::NormalSelection) || (ctrl && Selection().getSelectionStyle() == SelectionStyle::GreedySelection)) { diff --git a/src/Mod/Spreadsheet/App/Sheet.cpp b/src/Mod/Spreadsheet/App/Sheet.cpp index 0171fd1eee..88376404dd 100644 --- a/src/Mod/Spreadsheet/App/Sheet.cpp +++ b/src/Mod/Spreadsheet/App/Sheet.cpp @@ -110,7 +110,7 @@ Sheet::~Sheet() /** * Clear all cells in the sheet. These are implemented as dynamic * properties, for example "A1" is added as a dynamic property. Since - * now users may add dyanamic properties, we need to try to avoid + * now users may add dynamic properties, we need to try to avoid * removing those, too, so we check whether the dynamic property name * is a valid cell address name before removing it. */