From 56fb0953d7061ef534cc9e1f65a1ec0bd2b49a10 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 1 Nov 2010 14:53:50 +0000 Subject: [PATCH] 0020999: EDF 1575 SMESH: Filters and precision preferences Additional fix for Filter dialog box --- src/SMESHGUI/SMESHGUI_FilterDlg.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); - } //======================================================================= -- 2.39.2