Salome HOME
latests developments debug and porting Python3
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_LandCoverMapPrs.cxx
index 7888166a154e4fa55f84f2b97dc2b4e50d9edbe9..e6773b813f8592af9d64c903ed4a3834a531bca7 100644 (file)
@@ -122,7 +122,7 @@ Quantity_Color HYDROGUI_LandCoverMapPrs::GetColor( const QString& theStricklerTy
       return Quantity_Color();
   }
 
-  QColor aColor = HYDROData_Document::Document( myLCMap->Label())->GetAssociatedColor(theStricklerType, myTable);
+  QColor aColor = HYDROData_Document::Document()->GetAssociatedColor(theStricklerType, myTable);
 
   if (aColor.isValid())
     return HYDROData_Tool::toOccColor(aColor);