From aa2c77faef4a184a4311d6744bcccec5af276ed9 Mon Sep 17 00:00:00 2001 From: wandererfan Date: Wed, 23 Oct 2024 09:24:26 -0400 Subject: [PATCH] [TD]handle cut profiles with only a single edge --- src/Mod/TechDraw/App/DrawComplexSection.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Mod/TechDraw/App/DrawComplexSection.cpp b/src/Mod/TechDraw/App/DrawComplexSection.cpp index 9342451058..adcf0f3baa 100644 --- a/src/Mod/TechDraw/App/DrawComplexSection.cpp +++ b/src/Mod/TechDraw/App/DrawComplexSection.cpp @@ -506,13 +506,6 @@ void DrawComplexSection::makeAlignedPieces(const TopoDS_Shape& rawShape) return; } - int pieceCount = pieces.size(); - if (pieceCount < 2) { - //no need to space out the pieces - m_alignResult = TopoDS::Compound(pieces.front()); - return; - } - //space the pieces "horizontally" or "vertically" in OXYZ double movementReverser = isProfileVertical ? verticalReverser : horizReverser; gp_Vec movementAxis = gp_Vec(gp::OX().Direction());