X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FHYDROGUI%2FHYDROGUI_ShapeBathymetry.cxx;h=da2a12b726cc5a9c1a0975430d800e5f5267a318;hb=6074577ddf7ed43a22093a51d50d53b99adaea5e;hp=75542ee3be2fe53bbf5e461d2e8ac94e1bfb9f2f;hpb=686208eab66de9f5042cbc271774114f7d6df880;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx b/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx index 75542ee3..da2a12b7 100644 --- a/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx +++ b/src/HYDROGUI/HYDROGUI_ShapeBathymetry.cxx @@ -70,7 +70,7 @@ Handle(AIS_InteractiveObject) HYDROGUI_ShapeBathymetry::createShape() const Handle(HYDROData_Bathymetry) aBath = Handle(HYDROData_Bathymetry)::DownCast( getObject() ); if( !aBath.IsNull() ) { - aPntCloud = new HYDROGUI_BathymetryPrs(); + aPntCloud = new HYDROGUI_BathymetryPrs( this ); //aPntCloud->SetHilightMode( AIS_PointCloud::DM_BndBox ); aPntCloud->Attributes()->SetPointAspect (new Prs3d_PointAspect (Aspect_TOM_POINT, Quantity_NOC_WHITE, 2.0)); @@ -269,7 +269,10 @@ void HYDROGUI_ShapeBathymetry::TextLabels( bool isOn ) if( prs.IsNull() ) return; - QList selection = selected(); + QList selection; + if( isOn ) + selection = selected(); + getContext()->ClearSelected(); prs->SetTextLabels( selection ); getAISObject()->Redisplay();