From a703ae39d3a592a73ba19df882049e11db765c6a Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Fri, 29 Mar 2019 11:23:52 -0400 Subject: [PATCH] More misc. typos --- src/Mod/Arch/ArchStairs.py | 6 +++--- src/Mod/Part/App/ImportStep.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mod/Arch/ArchStairs.py b/src/Mod/Arch/ArchStairs.py index caadf1e010..0e77b1e929 100644 --- a/src/Mod/Arch/ArchStairs.py +++ b/src/Mod/Arch/ArchStairs.py @@ -328,7 +328,7 @@ class _Stairs(ArchComponent.Component): obj.setEditorMode("OutlineRight",1) # Can't accept 'None' in list, need NaN - #if not hasattr(obj,"OutlineRailArcLeft"): + #if not hasattr(obj,"OutlineRailArcLeft"): #obj.addProperty("App::PropertyVectorList","OutlineRailArcLeft","Segment and Parts",QT_TRANSLATE_NOOP("App::Property","The 'left outline' 'arc points' of stairs railing")) #obj.setEditorMode("OutlineRailArcLeft",1) #if not hasattr(obj,"OutlineRailArcRight"): @@ -694,7 +694,7 @@ class _Stairs(ArchComponent.Component): #vBase2vec = (vBase2-vBase[i]) # - would not be correct if Align is not Left ''' (1a) calc & append vLength - Need v (vec) ''' - vLength.append(Vector(v[i].x,v[i].y,v[i].z)) # TODO check all function below ok with curve? # TODO vLength in this f() is 3d + vLength.append(Vector(v[i].x,v[i].y,v[i].z)) # TODO check all function below ok with curve? # TODO vLength in this f() is 3d ''' (1b, 2a) calc & append vWidth - Need vLength, netWidthI ''' @@ -1363,7 +1363,7 @@ class _Stairs(ArchComponent.Component): if obj.LastSegment.Proxy.OutlineRailArcLeftAll: # need if? outlineRailArcLeftAll.extend(obj.LastSegment.Proxy.OutlineRailArcLeftAll) - if (outlineLeftAll[-1] - obj.OutlineLeft[0]).Length < 0.01: # To avoid 2 points overlapping fail creating LineSegment # TODO to allow tolerence Part.LineSegment / edge.toShape() allow? + if (outlineLeftAll[-1] - obj.OutlineLeft[0]).Length < 0.01: # To avoid 2 points overlapping fail creating LineSegment # TODO to allow tolerance Part.LineSegment / edge.toShape() allow? # no need abs() after .Length right? del outlineLeftAll[-1] del outlineRailArcLeftAll[-1] diff --git a/src/Mod/Part/App/ImportStep.cpp b/src/Mod/Part/App/ImportStep.cpp index 828c27040b..f5adf51682 100644 --- a/src/Mod/Part/App/ImportStep.cpp +++ b/src/Mod/Part/App/ImportStep.cpp @@ -237,9 +237,9 @@ int Part::ImportStepParts(App::Document *pcDoc, const char* Name) static void findStyledSR (const Handle(StepVisual_StyledItem) &style, Handle(StepShape_ShapeRepresentation)& aSR) { - // search Shape Represenatation for component styled item + // search Shape Representation for component styled item for (Standard_Integer j=1; j <= style->NbStyles(); j++) { - Handle(StepVisual_PresentationStyleByContext) PSA = + Handle(StepVisual_PresentationStyleByContext) PSA = Handle(StepVisual_PresentationStyleByContext)::DownCast(style->StylesValue ( j )); if (PSA.IsNull()) continue;