From b6b4412159d082b356c2b50ee8692486c53a4891 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 12 May 2005 08:07:08 +0000 Subject: [PATCH] PAL8581. call SmoothParametric[Object]() instead of IsParametric parameter usage --- src/SMESHGUI/SMESHGUI_SmoothingDlg.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_SmoothingDlg.cxx b/src/SMESHGUI/SMESHGUI_SmoothingDlg.cxx index 1d2b909a3..4968001a9 100644 --- a/src/SMESHGUI/SMESHGUI_SmoothingDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_SmoothingDlg.cxx @@ -361,9 +361,12 @@ void SMESHGUI_SmoothingDlg::ClickOnApply() { SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor(); QApplication::setOverrideCursor(Qt::waitCursor); - aResult = aMeshEditor->Smooth(anElementsId.inout(), aNodesId.inout(), - anIterationLimit, aMaxAspectRatio, aMethod, - CheckBoxParametric->isChecked()); + if ( CheckBoxParametric->isChecked() ) + aResult = aMeshEditor->SmoothParametric(anElementsId.inout(), aNodesId.inout(), + anIterationLimit, aMaxAspectRatio, aMethod); + else + aResult = aMeshEditor->Smooth(anElementsId.inout(), aNodesId.inout(), + anIterationLimit, aMaxAspectRatio, aMethod); QApplication::restoreOverrideCursor(); } catch( ... ) -- 2.39.2