X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHYDROGUI%2FHYDROGUI_LandCoverOp.cxx;h=17ac4487b9240f3af18e973d34092387fc4a8712;hb=00d0017f5e951fb3dd965140d1f16d07d9a49daa;hp=2d2c5705a6459435b331599cbfb85420bc72c427;hpb=b62210e48be9a46b9a7d2c85ecce2fdccefbfa07;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx b/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx index 2d2c5705..17ac4487 100644 --- a/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx +++ b/src/HYDROGUI/HYDROGUI_LandCoverOp.cxx @@ -107,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 );