]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/service/DocumentServiceImpl.java
Salome HOME
Integration of ISR fixes:
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / DocumentServiceImpl.java
index 98d952f487e8d05c354d7f544a488f7bab3fe20e..92067601fa7b113245e9dd2f4d9093e4d377df06 100644 (file)
@@ -537,11 +537,6 @@ public class DocumentServiceImpl implements DocumentService {
                Document previous = null;
 
                // Set of version number
-               if (state == ProgressState.EXTERN) {
-                       if (aDoc.getProgressState() != ProgressState.EXTERN) {
-                               aDoc.setVersion(null); // Strange use-case...
-                       }
-               } else {
                        Revision myvers = new Revision(aDoc.getVersion());
                        if (!myvers.isNull()) { // Versionning context
                                previous = aDoc.getPreviousVersion();
@@ -550,7 +545,7 @@ public class DocumentServiceImpl implements DocumentService {
                                myvers.incrementAs(state); // Incrementation if the reversion number is not imposed
                        }
                        aDoc.setVersion(myvers.toString());
-               }
+
                // Update this document and the previous version, if exist
                if (previous != null) {
                        previous.setHistory(previous.getHistory() + 1);