Sketcher: Fix offset of open profile (#25091)

* Sketcher: Fix offset of open profile

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
PaddleStroke
2025-11-05 19:35:45 +01:00
committed by GitHub
parent a8ce12f2b4
commit cb108249f2

View File

@@ -960,11 +960,6 @@ private:
for (auto& CC : vCC) {
BRepBuilderAPI_MakeWire mkWire;
if (CC.size() > 1) {
// The element to become the new first element is the last one.
// The iterator to this element is one before the end.
std::rotate(CC.begin(), CC.end() - 1, CC.end());
}
for (auto& curveId : CC) {
const Part::Geometry* pGeo = Obj->getGeometry(curveId);
auto geoCopy = std::unique_ptr<Part::Geometry>(pGeo->copy());