From: jfa Date: Fri, 1 Feb 2008 09:17:04 +0000 (+0000) Subject: NPAL17873: SMESH add a triangle instead of make quadrangles only. X-Git-Tag: for_M2008_07022008~4 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=03cd588b86fb51281ab6a7b3efffa1fe7b9466e5 NPAL17873: SMESH add a triangle instead of make quadrangles only. --- diff --git a/src/StdMeshersGUI/SMESH_StdMeshersGUI.hxx b/src/StdMeshersGUI/SMESH_StdMeshersGUI.hxx index 67b4638c6..6171d9f84 100755 --- a/src/StdMeshersGUI/SMESH_StdMeshersGUI.hxx +++ b/src/StdMeshersGUI/SMESH_StdMeshersGUI.hxx @@ -37,4 +37,4 @@ #define STDMESHERSGUI_EXPORT #endif -#endif \ No newline at end of file +#endif diff --git a/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx b/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx index bfe80bdf1..b92bdeac9 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx @@ -708,14 +708,14 @@ bool StdMeshersGUI_StdHypothesisCreator::stdParams( ListOfStdParams& p ) const */ //================================================================================ -void StdMeshersGUI_StdHypothesisCreator::attuneStdWidget (QWidget* w, const int param) const +void StdMeshersGUI_StdHypothesisCreator::attuneStdWidget (QWidget* w, const int) const { SMESHGUI_SpinBox* sb = w->inherits( "SMESHGUI_SpinBox" ) ? ( SMESHGUI_SpinBox* )w : 0; if( hypType()=="LocalLength" && sb ) { - if (param == 0) // Length + if (sb->name() == tr("SMESH_LOCAL_LENGTH_PARAM")) sb->RangeStepAndValidator( VALUE_SMALL, VALUE_MAX, 1.0, 6 ); - else // Precision + else if (sb->name() == tr("SMESH_LOCAL_LENGTH_PRECISION")) sb->RangeStepAndValidator( 0.0, 1.0, 0.05, 6 ); } else if( hypType()=="Arithmetic1D" && sb )