From: dmv Date: Fri, 12 Mar 2010 11:23:51 +0000 (+0000) Subject: 0020769: [CEA 398] Problem with BLSurf Plugin X-Git-Tag: V5_1_4a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a6ba8c829ddff586816fd77f06c47090e352b09;p=plugins%2Fblsurfplugin.git 0020769: [CEA 398] Problem with BLSurf Plugin --- diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx index 6ee6491..f063092 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx @@ -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() ) {