]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL18696 SMESH : version of MED export
authoreap <eap@opencascade.com>
Tue, 29 Jan 2008 13:46:48 +0000 (13:46 +0000)
committereap <eap@opencascade.com>
Tue, 29 Jan 2008 13:46:48 +0000 (13:46 +0000)
    use GetVersionString(SMESH::MED_VERSION version, CORBA::Short nbDigits);

src/SMESHGUI/SMESHGUI.cxx

index 8fd1bb714baa469725cffde1deec124d6f3d8df8..63ad64e378f4a8521affa26caa599a0ca42de93e 100644 (file)
@@ -278,9 +278,11 @@ using namespace std;
               if (aRet)
                 return;
             }
-
-            aFilterMap.insert( QObject::tr("MED 2.1 (*.med)"), SMESH::MED_V2_1 );
-            aFilterMap.insert( QObject::tr("MED 2.2 (*.med)"), SMESH::MED_V2_2 );
+            // PAL18696
+            QString v21( aMesh->GetVersionString( SMESH::MED_V2_1, 2));
+            QString v22( aMesh->GetVersionString( SMESH::MED_V2_2, 2));
+            aFilterMap.insert( QString("MED ") +  v21 + " (*.med)", SMESH::MED_V2_1 );
+            aFilterMap.insert( QString("MED ") +  v22 + " (*.med)", SMESH::MED_V2_2 );
           }
          break;
        case 124: