]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Merge branch 'BR_IMPROVEMENTS' of ssh://git.salome-platform.org/modules/hydro into...
authorisn <isn@opencascade.com>
Tue, 19 May 2015 12:13:35 +0000 (15:13 +0300)
committerisn <isn@opencascade.com>
Tue, 19 May 2015 12:39:16 +0000 (15:39 +0300)
1  2 
src/HYDROGUI/HYDROGUI_Shape.cxx
src/HYDROGUI/resources/HYDROGUI_msg_en.ts

index 182c586b9217abe4dd5be94cc193e0c7ba1a812f,08900fbe1f320597af4ecc652aa135732ea981e2..c8cefc3d9273c40df663a57c84a4f3fce86d3a8d
@@@ -33,7 -33,6 +33,7 @@@
  #include <HYDROData_ShapesGroup.h>
  #include <HYDROData_Stream.h>
  #include <HYDROData_Zone.h>
- #include <HYDROGUI_PrsShape.h>
++#include <HYDROGUI_Polyline.h>
  
  #include <AIS_Shape.hxx>
  #include <BRep_Builder.hxx>
@@@ -483,12 -482,7 +483,12 @@@ Handle_AIS_InteractiveObject HYDROGUI_S
    if( myTopoShape.IsNull() )
      return Handle_AIS_InteractiveObject();
    else
 -    return new AIS_Shape( myTopoShape );
 +    if ( myObject->IsKind( STANDARD_TYPE(HYDROData_PolylineXY) ) ||
 +        myObject->IsKind( STANDARD_TYPE(HYDROData_Polyline3D)) ||
 +        myObject->IsKind( STANDARD_TYPE(HYDROData_Profile) ))
-       return new HYDROGUI_PrsShape(myTopoShape);
++      return new HYDROGUI_Polyline(myTopoShape);
 +    else
 +      return new AIS_Shape( myTopoShape );
  }
  
  void HYDROGUI_Shape::buildShape()