Skip to content

Commit

Permalink
Fix various typos
Browse files Browse the repository at this point in the history
  • Loading branch information
luzpaz authored and wwmayer committed Dec 20, 2024
1 parent 173ff4d commit 4df6e01
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Mod/BIM/ArchCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/BIM/nativeifc/ifc_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/BIM/nativeifc/ifc_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/CAM/CAMTests/PathTestUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def assertArc(self, edge, pt1, pt2, direction="CW"):
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))
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Measure/Gui/TaskMeasure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Spreadsheet/App/Sheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 4df6e01

Please sign in to comment.