Salome HOME
Minor change.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Shape.cxx
index 4eaecc5163153195a3025225e1ae463682acbad9..1ac88c741e745cc36bcc26dc7be4b0263ad64eb0 100644 (file)
@@ -106,7 +106,7 @@ void HYDROGUI_Shape::update( const bool theIsUpdateViewer )
   // Try to retrieve information from object
   if ( !myObject.IsNull() )
   {
-    Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( myObject );
+    Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( myObject->Label() );
   
     if ( myObject->IsKind( STANDARD_TYPE(HYDROData_ImmersibleZone) ) )
     {