]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020978: EDF 1475 SMESH: Convert linear to quadratic on a submesh
authoreap <eap@opencascade.com>
Mon, 28 Mar 2011 12:22:53 +0000 (12:22 +0000)
committereap <eap@opencascade.com>
Mon, 28 Mar 2011 12:22:53 +0000 (12:22 +0000)
   fix a bug found by Renaud (note 0010641)

src/SMESHGUI/SMESHGUI_ConvToQuadOp.cxx

index d9cf284864fc56db2097abc8ea0e8045edb60223..f91e5b3685abfb2a38b1cb75f73441f464209951 100644 (file)
@@ -234,20 +234,21 @@ bool SMESHGUI_ConvToQuadOp::onApply()
   {
     SMESH::SMESH_MeshEditor_var aEditor = mesh->GetMeshEditor();
     aResult = true; 
+    SMESH::SMESH_Mesh_var sourceMesh = SMESH::SObjectToInterface<SMESH::SMESH_Mesh>( 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();