From 90ed40d605e28ba5322baa7091054c69ae10b4fb Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 1 Apr 2021 13:27:03 +0200 Subject: [PATCH] Import: if in a dxf file control points and fit points are given then use the former to create the B-Spline --- src/Mod/Import/App/ImpExpDxf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Import/App/ImpExpDxf.cpp b/src/Mod/Import/App/ImpExpDxf.cpp index 9bfc63ec9b..09827bd928 100644 --- a/src/Mod/Import/App/ImpExpDxf.cpp +++ b/src/Mod/Import/App/ImpExpDxf.cpp @@ -256,10 +256,10 @@ void ImpExpDxfRead::OnReadSpline(struct SplineData& sd) try { Handle(Geom_BSplineCurve) geom; - if (sd.fit_points > 0) - geom = getInterpolationSpline(sd); - else + if (sd.control_points > 0) geom = getSplineFromPolesAndKnots(sd); + else if (sd.fit_points > 0) + geom = getInterpolationSpline(sd); if (geom.IsNull()) throw Standard_Failure();