]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Patch from RNV: manually created mesh is not checked in
authorvsr <vsr@opencascade.com>
Thu, 6 Dec 2012 09:23:23 +0000 (09:23 +0000)
committervsr <vsr@opencascade.com>
Thu, 6 Dec 2012 09:23:23 +0000 (09:23 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_SimanStudy.cxx

index b8eb4795cbf74045802a91dbe33c5298919051cb..e22735cd28ca41528f1482d08c68f8c77a8c4170 100644 (file)
@@ -67,7 +67,7 @@ SALOMEDSImpl_SimanStudy::~SALOMEDSImpl_SimanStudy()
     for(; actIter.More(); actIter.Next()) {
       SimanIO_Activity::DocumentsIterator aDocIter(actIter.Activity());
       for(; aDocIter.More(); aDocIter.Next()) {
-        const SimanIO_Document& aDoc = aDocIter.Document();
+        /*const*/ SimanIO_Document& aDoc = aDocIter.Document();
         SimanIO_Document::FilesIterator aFileIter(aDoc);
         for(; aFileIter.More(); aFileIter.Next()) {
           string aURL = aFileIter.URL();
@@ -117,7 +117,7 @@ void SALOMEDSImpl_SimanStudy::CheckOut(SALOMEDSImpl_Study* theTarget)
         for(; aDocIter.More(); aDocIter.Next()) {
           if (_filesId.find(aDocIter.DocId()) == _filesId.end())
             _filesId[aDocIter.DocId()] = map<string, int>();
-          const SimanIO_Document& aDoc = aDocIter.Document(); 
+          /*const*/ SimanIO_Document& aDoc = aDocIter.Document(); 
           SimanIO_Document::FilesIterator aFileIter(aDoc);
           for(; aFileIter.More(); aFileIter.Next()) {
             if (aFileIter.GetProcessing() == FILE_IMPORT) {
@@ -169,7 +169,7 @@ void SALOMEDSImpl_SimanStudy::CheckIn(const std::string theModuleName)
     SimanIO_Configuration::ActivitiesIterator actIter(*_checkedOut);
     for(; actIter.More(); actIter.Next()) {
       int aDocId = actIter.Activity().DocumentMaxID();
-      if (aDocId < 0) continue; // no documents => no check in
+      //if (aDocId < 0) continue; // no documents => no check in
       if (!theModuleName.empty() && theModuleName != actIter.Activity().Module()) {
         continue;
       }