]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
0020769: [CEA 398] Problem with BLSurf Plugin V5_1_4a1
authordmv <dmv@opencascade.com>
Fri, 12 Mar 2010 11:23:51 +0000 (11:23 +0000)
committerdmv <dmv@opencascade.com>
Fri, 12 Mar 2010 11:23:51 +0000 (11:23 +0000)
src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx

index 6ee6491cc6c0ac2bb4d440baddc9a842ab9b1c40..f0630923e23a32717ea69430c61b620d37202d5e 100644 (file)
@@ -1,4 +1,4 @@
-       //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
+//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
 //
 //  This library is free software; you can redistribute it and/or
 //  modify it under the terms of the GNU Lesser General Public
@@ -1521,22 +1521,14 @@ void BLSURFPluginGUI_HypothesisCreator::onPhysicalMeshChanged() {
   bool isCustom = (isPhysicalUserDefined || isSizeMap) ;
   bool geomIsCustom = (myGeometricMesh->currentIndex() == UserDefined);
   
-  myGradation->setEnabled(! isPhysicalUserDefined || geomIsCustom);
+  myGradation->setEnabled(!isPhysicalUserDefined || geomIsCustom);
   myPhySize->setEnabled(isCustom);
   myPhyMax->setEnabled(isCustom);
   myPhyMin->setEnabled(isCustom);
 
-  if ( !isSizeMap) {
-    double gradation;
-    switch( myPhysicalMesh->currentIndex() ) {
-      case DefaultSize:
-      default:
-        gradation = 1.1;
-        break;
-    }
-    myGradation->setValue( gradation );
-  }
-      
+  if ( !myGradation->isEnabled())
+    myGradation->setValue( 1.1 );
+
   if ( !isCustom ) {
     QString aPhySize = "";
     switch( myPhysicalMesh->currentIndex() ) {
@@ -1568,6 +1560,9 @@ void BLSURFPluginGUI_HypothesisCreator::onGeometricMeshChanged() {
   myGeoMax->setEnabled(isCustom);
   myGeoMin->setEnabled(isCustom);
 
+  if ( !myGradation->isEnabled())
+    myGradation->setValue( 1.1 );
+
   if ( ! isCustom ) {
     double aAngleMeshS;
     switch( myGeometricMesh->currentIndex() ) {