From c02df6a5fb79fd5756af07917ff0c1d612913a98 Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Sat, 27 Apr 2024 10:51:21 +0200 Subject: [PATCH] Import: C++ DXF importer wrongly scaled polyline bulges Fixes #13600. --- src/Mod/Import/App/dxf/dxf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Import/App/dxf/dxf.cpp b/src/Mod/Import/App/dxf/dxf.cpp index d7535402e4..ba8161cfae 100644 --- a/src/Mod/Import/App/dxf/dxf.cpp +++ b/src/Mod/Import/App/dxf/dxf.cpp @@ -2162,7 +2162,7 @@ bool CDxfRead::ReadLwPolyLine() // In the latter case the stroke attributes apply to the closure stroke (if any) which ends at // the first vertex. Setup3DVectorAttribute(ePrimaryPoint, currentVertex.location); - SetupScaledDoubleAttribute(eFloat3, currentVertex.bulge); + SetupValueAttribute(eFloat3, currentVertex.bulge); SetupValueAttribute(eInteger1, flags); while (get_next_record() && m_record_type != eObjectType) { if ((m_record_type == ePrimaryPoint + eXOffset && have_x) @@ -2208,7 +2208,7 @@ bool CDxfRead::ReadPolyLine() // To avoid eating and discarding the rest of the entieies if ENDSEQ is missing, // we quit on any unknown type-0 record. Setup3DVectorAttribute(ePrimaryPoint, currentVertex.location); - SetupScaledDoubleAttribute(eFloat3, currentVertex.bulge); + SetupValueAttribute(eFloat3, currentVertex.bulge); while (get_next_record() && m_record_type == eObjectType && IsObjectName("VERTEX")) { // Set vertex defaults currentVertex.location = Base::Vector3d();