X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_LandCoverOp.cxx;h=17ac4487b9240f3af18e973d34092387fc4a8712;hb=00d0017f5e951fb3dd965140d1f16d07d9a49daa;hp=9cf2567e4ea5aa58380c420f8a81de0adfd1106b;hpb=19db93b534fa617ab7d6e45bd1b334c630ca8e2b;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx b/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx index 9cf2567e..17ac4487 100644 --- a/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx +++ b/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx @@ -20,6 +20,7 @@ #include "HYDROGUI_LandCoverDlg.h" #include "HYDROGUI_Module.h" +#include "HYDROGUI_OCCDisplayer.h" #include "HYDROGUI_Shape.h" #include "HYDROGUI_Tool.h" #include "HYDROGUI_UpdateFlags.h" @@ -106,15 +107,16 @@ void HYDROGUI_LandCoverOp::startOperation() if ( !aStricklerTableObj.IsNull() ) { // Get Strickler table data from the data model - TColStd_SequenceOfExtendedString aTypes = aStricklerTableObj->GetTypes(); - for ( int i = 1; i <= aTypes.Length(); i++ ) + QStringList aTypes = aStricklerTableObj->GetTypes(); + for ( QStringList::iterator it = aTypes.begin(); it != aTypes.end(); ++it ) { - QString aType = HYDROGUI_Tool::ToQString( aTypes.Value( i ) ); - if ( !aType.isEmpty() && !aStricklerTypes.contains( aType )) + QString aType = *it; + if ( !aType.isEmpty() && !aStricklerTypes.contains( aType ) ) aStricklerTypes.append( aType ); } } } + aStricklerTypes.sort(); aPanel->setAdditionalParams( aStricklerTypes ); @@ -233,6 +235,7 @@ bool HYDROGUI_LandCoverOp::processApply( int& theUpdateFlags, } module()->setIsToUpdate( aZoneObj ); + module()->getOCCDisplayer()->SetToUpdateColorScale(); theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer;