0027104: DownCast() cannot return null for mismatched handle
[occt.git] / src / StepToGeom / StepToGeom_MakeBSplineCurve.pxx
index 4eda09f..6933a83 100644 (file)
@@ -19,7 +19,7 @@
 
   if (SC->IsKind(STANDARD_TYPE(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve))) {
     BSCWR = Handle(StepGeom_BSplineCurveWithKnotsAndRationalBSplineCurve)::DownCast(SC);
-    BSCW = Handle(StepGeom_BSplineCurveWithKnots)::DownCast(BSCWR->BSplineCurveWithKnots());
+    BSCW = BSCWR->BSplineCurveWithKnots();
   }
   else
     BSCW = Handle(StepGeom_BSplineCurveWithKnots)::DownCast(SC);