From: isn Date: Fri, 9 Dec 2016 12:24:26 +0000 (+0300) Subject: refs #1085 X-Git-Tag: v1.6^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5d2c902f7ce452aa5052a5d346ae73eff2bd421;p=modules%2Fhydro.git refs #1085 --- 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 ); }