Salome HOME
Refs #289 - Spline profile is represented in OCC view as polyline profile
[modules/hydro.git] / src / HYDROData / HYDROData_Bathymetry.cxx
index cb9ee5c6008023a63dfba06402b110236cb6560c..8d679bd2173caa35788541263c04e8a1b7d88461 100644 (file)
@@ -489,7 +489,10 @@ bool HYDROData_Bathymetry::CreateBoundaryPolyline() const
   if( aResult.IsNull() )
     return false;
 
-  aResult->SetName( GetName() + "_boundary" );
+  //search free name
+  QString aPolylinePref = GetName() + "_Boundary";
+  QString aPolylineName = HYDROData_Tool::GenerateObjectName( aDocument, aPolylinePref );
+  aResult->SetName( aPolylineName );
 
   double Xmin = 0.0, Xmax = 0.0, Ymin = 0.0, Ymax = 0.0;
   bool isFirst = true;