From b969fa790b5011bf3dddf3d8c0fd6fcd17c4105b Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Wed, 30 Sep 2020 17:54:29 +0200 Subject: [PATCH] allow exporting spline polylines as shapes --- src/HYDROData/HYDROData_ShapeFile.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HYDROData/HYDROData_ShapeFile.cxx b/src/HYDROData/HYDROData_ShapeFile.cxx index d372e18e..3e7b3486 100644 --- a/src/HYDROData/HYDROData_ShapeFile.cxx +++ b/src/HYDROData/HYDROData_ShapeFile.cxx @@ -151,9 +151,9 @@ int HYDROData_ShapeFile::WriteObjectPolyXY(Handle(HYDROData_Document) theDocumen std::vector x, y; std::vector anPartStart; - for (int i = 0; i < thePoly->NbSections(); i++) - if (thePoly->GetSectionType(i) == HYDROData_IPolyline::SECTION_SPLINE) - return -1; +// for (int i = 0; i < thePoly->NbSections(); i++) +// if (thePoly->GetSectionType(i) == HYDROData_IPolyline::SECTION_SPLINE) +// return -1; for (int i = 0; i < thePoly->NbSections(); i++) { -- 2.39.2