From 4a6ba8c829ddff586816fd77f06c47090e352b09 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 12 Mar 2010 11:23:51 +0000 Subject: [PATCH] 0020769: [CEA 398] Problem with BLSurf Plugin --- src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) 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() ) { -- 2.39.2