]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
NPAL17873: SMESH add a triangle instead of make quadrangles only.
authorjfa <jfa@opencascade.com>
Fri, 1 Feb 2008 09:17:04 +0000 (09:17 +0000)
committerjfa <jfa@opencascade.com>
Fri, 1 Feb 2008 09:17:04 +0000 (09:17 +0000)
src/StdMeshersGUI/SMESH_StdMeshersGUI.hxx
src/StdMeshersGUI/StdMeshersGUI_StdHypothesisCreator.cxx

index 67b4638c60e160ece7ab44374a171ca4112accd8..6171d9f84d7e05e30c34e6aff9a8f1d75ec181fe 100755 (executable)
@@ -37,4 +37,4 @@
  #define STDMESHERSGUI_EXPORT
 #endif
 
-#endif
\ No newline at end of file
+#endif
index bfe80bdf1a750019906b7da8d48a55fdb3ac7043..b92bdeac918a32f53e0d3b3a72ca3573f34770a8 100644 (file)
@@ -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 )