Salome HOME
projects
/
plugins
/
blsurfplugin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0020769: [CEA 398] Problem with BLSurf Plugin
[plugins/blsurfplugin.git]
/
src
/
GUI
/
BLSURFPluginGUI_HypothesisCreator.cxx
diff --git
a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx
b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx
index 6ee6491cc6c0ac2bb4d440baddc9a842ab9b1c40..f0630923e23a32717ea69430c61b620d37202d5e 100644
(file)
--- 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
//
// 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);
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);
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() ) {
if ( !isCustom ) {
QString aPhySize = "";
switch( myPhysicalMesh->currentIndex() ) {
@@
-1568,6
+1560,9
@@
void BLSURFPluginGUI_HypothesisCreator::onGeometricMeshChanged() {
myGeoMax->setEnabled(isCustom);
myGeoMin->setEnabled(isCustom);
myGeoMax->setEnabled(isCustom);
myGeoMin->setEnabled(isCustom);
+ if ( !myGradation->isEnabled())
+ myGradation->setValue( 1.1 );
+
if ( ! isCustom ) {
double aAngleMeshS;
switch( myGeometricMesh->currentIndex() ) {
if ( ! isCustom ) {
double aAngleMeshS;
switch( myGeometricMesh->currentIndex() ) {