X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_Tool.cxx;h=6cc4ae17009cd18d049be5fbea233d8d5a6b88b0;hb=36005df362d7bee6db949b079960cec90333aed2;hp=7370fa3150755baf2c1dde3169fcd584ee5a335c;hpb=fdd7dcde36312e41d8ffb63ec58a77567e8592ef;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_Tool.cxx b/src/HYDROGUI/HYDROGUI_Tool.cxx index 7370fa31..6cc4ae17 100644 --- a/src/HYDROGUI/HYDROGUI_Tool.cxx +++ b/src/HYDROGUI/HYDROGUI_Tool.cxx @@ -184,7 +184,7 @@ QString HYDROGUI_Tool::GetTempDir( const bool theToCreate ) #ifdef WNT tmpdir = "C:\\"; #else - tmpdir = "/tmp"; + tmpdir = strdup( "/tmp" ); #endif } aRes = tmpdir; @@ -209,7 +209,6 @@ void HYDROGUI_Tool::SetActiveViewManager( HYDROGUI_Module* theModule, bool HYDROGUI_Tool::IsObjectHasPresentation( const Handle(HYDROData_Entity)& theObject, const QString& theViewerType ) { - if ( theObject.IsNull() ) return false; @@ -228,7 +227,8 @@ bool HYDROGUI_Tool::IsObjectHasPresentation( const Handle(HYDROData_Entity)& the anObjectKind == KIND_CHANNEL || anObjectKind == KIND_DIGUE || anObjectKind == KIND_DUMMY_3D || - anObjectKind == KIND_BATHYMETRY + anObjectKind == KIND_BATHYMETRY || + anObjectKind == KIND_LAND_COVER_MAP #ifdef DEB_GROUPS || anObjectKind == KIND_SHAPES_GROUP || anObjectKind == KIND_SPLITTED_GROUP @@ -662,7 +662,7 @@ QColor HYDROGUI_Tool::GenerateFillingColor( HYDROGUI_Module* theModule, QColor HYDROGUI_Tool::GenerateFillingColor( const Handle(HYDROData_Document)& theDoc, const QStringList& theZoneNames ) { - QColor aFillingColor( HYDROData_ImmersibleZone::DefaultFillingColor() ); + QColor aFillingColor( Qt::darkBlue ); int aCounter = 0; int aR = 0, aG = 0, aB = 0; @@ -809,4 +809,4 @@ void HYDROGUI_Tool::DeleteGeomObjects( HYDROGUI_Module* theModule, const QString aStudyBuilder->RemoveObject( aSObject ); } } -} \ No newline at end of file +}