From: vsr Date: Mon, 1 Nov 2010 14:53:50 +0000 (+0000) Subject: 0020999: EDF 1575 SMESH: Filters and precision preferences X-Git-Tag: V5_1_5rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=56fb0953d7061ef534cc9e1f65a1ec0bd2b49a10;p=modules%2Fsmesh.git 0020999: EDF 1575 SMESH: Filters and precision preferences Additional fix for Filter dialog box --- diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx index 98997fea6..99da50cf2 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx @@ -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); - } //=======================================================================