Salome HOME
LCM // Import/Export of SHP p.1
[modules/hydro.git] / src / HYDROData / HYDROData_PolylineOperator.cxx
index 0bc2d326069380329d9f92e0bb4d15626c24eff5..03e6d6005301e00cc805b613f6e31bfcc585dfbf 100644 (file)
@@ -163,7 +163,10 @@ bool HYDROData_PolylineOperator::Merge( const Handle( HYDROData_Document )& theD
 
   std::vector<TopoDS_Shape> aPolylines(1);
   aPolylines[0] = aWireSet;
-  CreatePolylines( theDoc, theName, aPolylines, false, QColor() );
+  QString aName = theName;
+  if( aName.isEmpty() )
+    aName = "merged";
+  CreatePolylines( theDoc, aName, aPolylines, true, QColor() );
   return true;
 }