From 9e3ba593d523e41dabd369657ab59b8b9c10346b Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 28 Mar 2011 12:22:53 +0000 Subject: [PATCH] 0020978: EDF 1475 SMESH: Convert linear to quadratic on a submesh fix a bug found by Renaud (note 0010641) --- src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx b/src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx index d9cf28486..f91e5b368 100644 --- a/src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx +++ b/src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx @@ -234,20 +234,21 @@ bool SMESHGUI_ConvToQuadOp::onApply() { SMESH::SMESH_MeshEditor_var aEditor = mesh->GetMeshEditor(); aResult = true; + SMESH::SMESH_Mesh_var sourceMesh = SMESH::SObjectToInterface( pObj ); if( !myDlg->CurrentRB() ) { bool aParam = true; if( myDlg->IsEnabledCheck() ) aParam = myDlg->IsMediumNdsOnGeom(); - if ( myDlg->isWarningShown() ) + if ( sourceMesh->_is_nil() ) aEditor->ConvertToQuadraticObject( aParam, idSource ); else aEditor->ConvertToQuadratic( aParam ); } else { - if ( myDlg->isWarningShown() ) + if ( sourceMesh->_is_nil() ) aEditor->ConvertFromQuadraticObject( idSource ); else aEditor->ConvertFromQuadratic();