X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI.cxx;h=dcb6d7c98308c2fc74de8bc0ad4de1b3689ab591;hp=ab3327064d318d14e1801deaeca9863efefef90c;hb=4ea4ccf36f3c18ecde6f63d51d3e8876a2a27344;hpb=4791f5b30ea7a9c1247aa551750dc71cb83b99aa diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index ab3327064..dcb6d7c98 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -216,7 +216,7 @@ SMESHGUI* SMESHGUI::GetOrCreateSMESHGUI( QAD_Desktop* desktop ) Engines::Component_var comp = desktop->getEngine("FactoryServer", "SMESH"); smeshGUI->myComponentMesh = SMESH::SMESH_Gen::_narrow(comp); - Engines::Component_var comp1 = desktop->getEngine("FactoryServer", "Geometry"); + Engines::Component_var comp1 = desktop->getEngine("FactoryServer", "GEOM"); smeshGUI->myComponentGeom = GEOM::GEOM_Gen::_narrow(comp1); /* GetCurrentStudy */ @@ -2823,7 +2823,7 @@ void SMESHGUI::Import_Mesh(QAD_Desktop* parent, int theCommandID) // Mesh_Reader* myReader = SMESHDriver::GetMeshReader(myExtension, myClass); int myMeshId = (smeshGUI->myDocument)->NewMesh(); - Handle(SMDS_Mesh) myMesh = (smeshGUI->myDocument)->GetMesh(myMeshId); + SMDS_Mesh* myMesh = (smeshGUI->myDocument)->GetMesh(myMeshId); myReader->SetFile(string(filename.latin1())); myReader->SetMesh(myMesh); @@ -2940,7 +2940,7 @@ void SMESHGUI::Import_Document(QAD_Desktop* parent, int theCommandID) QApplication::setOverrideCursor( Qt::waitCursor ); string myClass = string("SMESHDS_Document"); // Document_Reader* myReader = SMESHDriver::GetDocumentReader(myExtension, myClass); - Handle(SMESHDS_Document) newDocument = new SMESHDS_Document(1); + SMESHDS_Document* newDocument = new SMESHDS_Document(1); myReader->SetFile(string(filename.latin1())); myReader->SetDocument(smeshGUI->myDocument);