Fix various typos
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"):
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user