Salome HOME
tests configuration for Linux and YAMM
[modules/hydro.git] / src / HYDRO_tests / test_HYDROData_DTM.cxx
index d433872248c39cf96cbb268c618ba61b5e856ef6..9c06cc7e1fa22078972f99e30f6d2337a0d91427 100644 (file)
@@ -48,7 +48,7 @@ class DTM_item : public QGraphicsItem
 public:
   DTM_item( HYDROGUI_ShapeBathymetry* theDTM, double d )
   {
-    Handle(AIS_PointCloud) pc = Handle(AIS_PointCloud)::DownCast( theDTM->getAISObject() );
+    Handle(AIS_PointCloud) pc = Handle(AIS_PointCloud)::DownCast( theDTM->getAISObjects()[0] );
     Handle(Graphic3d_ArrayOfPoints) pp = pc->GetPoints();
     myBB = QRectF();
     double xmin, xmax, ymin, ymax;