From eadf02ab78f7d138316adec98493bbf9a6831037 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 20 Dec 2016 16:31:05 +0300 Subject: [PATCH] Regression of test_enforced_vertex.py --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 71c5b07..49e399e 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -411,7 +411,7 @@ typedef struct { ///////////////////////////////////////////////////////// -projectionPoint getProjectionPoint(const TopoDS_Face& theFace, const gp_Pnt& thePoint) +projectionPoint getProjectionPoint(TopoDS_Face& theFace, const gp_Pnt& thePoint) { projectionPoint myPoint; @@ -470,6 +470,7 @@ projectionPoint getProjectionPoint(const TopoDS_Face& theFace, const gp_Pnt& the if ( foundFace.IsNull() ) throw SMESH_ComputeError(COMPERR_BAD_PARMETERS, "getProjectionPoint: can't find a face by a vertex"); + theFace = TopoDS::Face( foundFace ); } else { -- 2.39.2