From c5d2c902f7ce452aa5052a5d346ae73eff2bd421 Mon Sep 17 00:00:00 2001 From: isn Date: Fri, 9 Dec 2016 15:24:26 +0300 Subject: [PATCH] refs #1085 --- src/HYDROData/HYDROData_PolylineOperator.cxx | 42 ++++++++++++++++++-- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/src/HYDROData/HYDROData_PolylineOperator.cxx b/src/HYDROData/HYDROData_PolylineOperator.cxx index d36f5fa1..43fb6799 100644 --- a/src/HYDROData/HYDROData_PolylineOperator.cxx +++ b/src/HYDROData/HYDROData_PolylineOperator.cxx @@ -50,6 +50,8 @@ #include #include #include +#include +#include #define _DEVDEBUG_ #include "HYDRO_trace.hxx" @@ -450,6 +452,7 @@ bool HYDROData_PolylineOperator::Extract( const Handle(HYDROData_Document)& theD QList aBoundShapes; QStringList aBoundNames; + QMap aNameToShMap; theObject->GetBoundaries( aBoundShapes, aBoundNames ); @@ -460,21 +463,52 @@ bool HYDROData_PolylineOperator::Extract( const Handle(HYDROData_Document)& theD continue; QString aBoundName = iCreateObject( KIND_POLYLINEXY ) ); - + if( aPolyline.IsNull() ) return false; - aPolyline->SetShape( aShape ); + aPolyline->SetShape( aShapeW ); int anIndex = 0; - QString aName = aBoundName; + QString aName = K; while( !theDocument->FindObjectByName( aName ).IsNull() ) { anIndex++; - aName = aBoundName + "_" + QString::number( anIndex ); + aName = K + "_" + QString::number( anIndex ); } aPolyline->SetName( aName ); } -- 2.39.2