]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020999: EDF 1575 SMESH: Filters and precision preferences
authorvsr <vsr@opencascade.com>
Mon, 1 Nov 2010 14:53:50 +0000 (14:53 +0000)
committervsr <vsr@opencascade.com>
Mon, 1 Nov 2010 14:53:50 +0000 (14:53 +0000)
Additional fix for Filter dialog box

src/SMESHGUI/SMESHGUI_FilterDlg.cxx

index 98997fea612befd596857551f28b5a653fb8e31d..99da50cf28f01ba72cebbf27ec5770a2b05f4854 100755 (executable)
@@ -1191,7 +1191,7 @@ void SMESHGUI_FilterTable::SetCriterion (const int                       theRow,
       aTable->item( theRow, 5 )->setText( QString( theCriterion.ThresholdID ) );
   }
 
-  if (theCriterion.Compare  == SMESH::FT_EqualTo ||
+  if (theCriterion.Compare == SMESH::FT_EqualTo ||
       theCriterion.Type    == SMESH::FT_BelongToPlane ||
       theCriterion.Type    == SMESH::FT_BelongToCylinder ||
       theCriterion.Type    == SMESH::FT_BelongToGenSurface ||
@@ -1203,13 +1203,13 @@ void SMESHGUI_FilterTable::SetCriterion (const int                       theRow,
     if (!myAddWidgets.contains(anItem))
     {
       myAddWidgets[ anItem ] = new AdditionalWidget(myWgStack);
+      myAddWidgets[ anItem ]->SetPrecision( AdditionalWidget::Tolerance, getPrecision( theCriterion.Type ) );
       myWgStack->addWidget(myAddWidgets[ anItem ]);
     }
     myAddWidgets[ anItem ]->SetDouble(AdditionalWidget::Tolerance, theCriterion.Tolerance);
   }
 
   emit CriterionChanged(theRow, aType);
-
 }
 
 //=======================================================================