X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_Shape.cxx;h=9a6c0ca700144bd562ff588259b0508e277063a9;hb=de7cf9bb0a7a41d6487013c87f4a54d0664cd303;hp=4eaecc5163153195a3025225e1ae463682acbad9;hpb=84f8b4a57d3cdad820bc1333a5066699cd1c8ae3;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_Shape.cxx b/src/HYDROGUI/HYDROGUI_Shape.cxx index 4eaecc51..9a6c0ca7 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.cxx +++ b/src/HYDROGUI/HYDROGUI_Shape.cxx @@ -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) ) ) { @@ -162,7 +162,15 @@ void HYDROGUI_Shape::update( const bool theIsUpdateViewer ) } setFace( aZoneFace, false, false ); - setFillingColor( HYDROGUI_Tool::GenerateFillingColor( aDocument, aGeomObjectsNames ) ); + if (aZone->IsMergingNeed() && aZone->GetMergeType() == HYDROData_Zone::Merge_UNKNOWN ) + { + // Red color for a zone with bathymetry conflict + setFillingColor( Qt::red ); + } + else + { + setFillingColor( HYDROGUI_Tool::GenerateFillingColor( aDocument, aGeomObjectsNames ) ); + } } else if ( myObject->IsKind( STANDARD_TYPE(HYDROData_Image) ) ) {