From 71cf0e64f33cdd75f9155afb66ddd42d406d6a99 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sun, 16 Aug 2020 07:01:13 -0400 Subject: [PATCH] Part: fix typos in source function names and variables Found via `codespell` --- src/Mod/Part/Gui/DlgProjectionOnSurface.cpp | 12 ++++++------ src/Mod/Part/Gui/DlgProjectionOnSurface.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Mod/Part/Gui/DlgProjectionOnSurface.cpp b/src/Mod/Part/Gui/DlgProjectionOnSurface.cpp index e61e7431fa..986014e9f3 100644 --- a/src/Mod/Part/Gui/DlgProjectionOnSurface.cpp +++ b/src/Mod/Part/Gui/DlgProjectionOnSurface.cpp @@ -367,7 +367,7 @@ void PartGui::DlgProjectionOnSurface::store_current_selected_parts(std::vectorgetNameInDocument(); auto currentShape = aPart->Shape.getShape().getSubShape(itName->c_str()); - transform_shape_to_global_postion(currentShape, aPart); + transform_shape_to_global_position(currentShape, aPart); currentShapeStore.inputShape = currentShape; currentShapeStore.partName = *itName; @@ -378,7 +378,7 @@ void PartGui::DlgProjectionOnSurface::store_current_selected_parts(std::vectorShape.getName(), store, iColor); } @@ -918,12 +918,12 @@ void PartGui::DlgProjectionOnSurface::set_xyz_dir_spinbox(QDoubleSpinBox* icurre icurrentSpinBox->setValue(newVal); } -void PartGui::DlgProjectionOnSurface::transform_shape_to_global_postion(TopoDS_Shape& ioShape, Part::Feature* iPart) +void PartGui::DlgProjectionOnSurface::transform_shape_to_global_position(TopoDS_Shape& ioShape, Part::Feature* iPart) { auto currentPos = iPart->Placement.getValue().getPosition(); auto currentRotation = iPart->Placement.getValue().getRotation(); auto globalPlacement = iPart->globalPlacement(); - auto globalPostion = globalPlacement.getPosition(); + auto globalPosition = globalPlacement.getPosition(); auto globalRotation = globalPlacement.getRotation(); if (currentRotation != globalRotation) @@ -939,10 +939,10 @@ void PartGui::DlgProjectionOnSurface::transform_shape_to_global_postion(TopoDS_S ioShape = BRepBuilderAPI_Transform(ioShape, aAngleTransform, true).Shape(); } - if (currentPos != globalPostion) + if (currentPos != globalPosition) { gp_Trsf aPosTransform; - aPosTransform.SetTranslation(gp_Pnt(currentPos.x, currentPos.y, currentPos.z), gp_Pnt(globalPostion.x, globalPostion.y, globalPostion.z)); + aPosTransform.SetTranslation(gp_Pnt(currentPos.x, currentPos.y, currentPos.z), gp_Pnt(globalPosition.x, globalPosition.y, globalPosition.z)); ioShape = BRepBuilderAPI_Transform(ioShape, aPosTransform, true).Shape(); } } diff --git a/src/Mod/Part/Gui/DlgProjectionOnSurface.h b/src/Mod/Part/Gui/DlgProjectionOnSurface.h index c51137d478..26e0248931 100644 --- a/src/Mod/Part/Gui/DlgProjectionOnSurface.h +++ b/src/Mod/Part/Gui/DlgProjectionOnSurface.h @@ -116,7 +116,7 @@ private: void create_face_extrude(std::vector& iCurrentShape); void store_wire_in_vector(const SShapeStore& iCurrentShape, const TopoDS_Shape& iParentShape, std::vector& iStoreVec, const unsigned int iColor); void set_xyz_dir_spinbox(QDoubleSpinBox* icurrentSpinBox); - void transform_shape_to_global_postion(TopoDS_Shape& ioShape, Part::Feature* iPart); + void transform_shape_to_global_position(TopoDS_Shape& ioShape, Part::Feature* iPart); private: /** Checks if the given document is about to be closed */