Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8ab62ff
)
INT PAL 0052834: Widget in the "Viscous layers" hypothesis isn't updated
author
mpa
<mpa@opencascade.com>
Thu, 30 Jul 2015 08:00:04 +0000
(11:00 +0300)
committer
mpa
<mpa@opencascade.com>
Thu, 30 Jul 2015 08:00:04 +0000
(11:00 +0300)
src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx
patch
|
blob
|
history
diff --git
a/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx
b/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx
index 5f38e7f6c97dc7ef0e720d134f50371934b1ae9a..c2ffde107dec7b878fd6a55aa2352f4ca5566b7a 100644
(file)
--- a/
src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx
+++ b/
src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx
@@
-1617,9
+1617,10
@@
void StdMeshersGUI_StdHypothesisCreator::valueChanged( QWidget* paramWidget)
}
else if ( hypType().startsWith( "ViscousLayers" ) && paramWidget->inherits("QButtonGroup"))
{
}
else if ( hypType().startsWith( "ViscousLayers" ) && paramWidget->inherits("QButtonGroup"))
{
- if ( QLabel* label = getLabel(4) )
+ int widgetNumber = hypType() == "ViscousLayers2D" ? 3 : 4;
+ if ( QLabel* label = getLabel( widgetNumber + 1 ) )
{
{
- bool toIgnore = widget< StdMeshersGUI_RadioButtonsGrpWdg >(
3
)->checkedId();
+ bool toIgnore = widget< StdMeshersGUI_RadioButtonsGrpWdg >(
widgetNumber
)->checkedId();
if ( hypType() == "ViscousLayers2D" )
label->setText( tr( toIgnore ? "SMESH_EDGES_WO_LAYERS" : "SMESH_EDGES_WITH_LAYERS" ));
else
if ( hypType() == "ViscousLayers2D" )
label->setText( tr( toIgnore ? "SMESH_EDGES_WO_LAYERS" : "SMESH_EDGES_WITH_LAYERS" ));
else