From: srn Date: Tue, 14 Feb 2006 13:10:18 +0000 (+0000) Subject: Changed method DumpStudy X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5d87bec7fa717b40b66fecffeeecc285de3b575f;p=modules%2Fgui.git Changed method DumpStudy --- diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index eabca62c4..c5e8064c0 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -489,15 +489,15 @@ void SalomeApp_Application::onDumpStudy( ) if(!aFileName.isEmpty()) { QFileInfo aFileInfo(aFileName); - QString prefix(""); bool isDumpVisualParameters = true; int savePoint; if(isDumpVisualParameters) { //SRN: Store a visual state of the study at the save point for DumpStudy method + SALOMEDS_IParameters::setDumpPython(appStudy->studyDS()); savePoint = appStudy->storeState(); //SRN: create a temporary save point - prefix = SALOMEDS_IParameters::getStudyScript(appStudy->studyDS(), appStudy->getVisualComponentName(), savePoint); + //prefix = SALOMEDS_IParameters::getStudyScript(appStudy->studyDS(), appStudy->getVisualComponentName(), savePoint); } - bool res = aStudy->DumpStudy( aFileInfo.dirPath( true ).latin1(), aFileInfo.baseName().latin1(), toPublish ,prefix.latin1()); + bool res = aStudy->DumpStudy( aFileInfo.dirPath( true ).latin1(), aFileInfo.baseName().latin1(), toPublish); if(isDumpVisualParameters) appStudy->removeSavePoint(savePoint); //SRN: remove the created temporary save point. if ( !res ) SUIT_MessageBox::warn1 ( desktop(), diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 2755b9d56..dc3df93ff 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -735,6 +735,7 @@ int SalomeApp_Study::storeState() _PTR(AttributeParameter) ap = studyDS()->GetCommonParameters(getVisualComponentName(), savePoint); SALOMEDS_IParameters ip(ap); + char buffer[128]; int viewerID = 0; SUIT_ViewManager* vm = 0;