]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/service/DocumentServiceImpl.java
Salome HOME
Default document types mappings are moved from application settings (my.xml) to proje...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / DocumentServiceImpl.java
index 7e6947d99d9affa9f25af9c7ee1ef3f5b392d9dd..cfa49834adb4b1804f9d6a430c2c856924e4ce91 100644 (file)
@@ -542,11 +542,10 @@ public class DocumentServiceImpl implements DocumentService {
                                for (Iterator<Relation> i = aDoc.getAllRelations().iterator(); i
                                                .hasNext();) {
                                        Relation link = i.next();
-                                       if (!link.getClass().equals(VersionsRelation.class)) {
-                                               continue;
+                                       if (link.getClass().equals(VersionsRelation.class)) {
+                                               previous = (Document) link.getTo(); // Versioned document
+                                               break;
                                        }
-                                       previous = (Document) link.getTo(); // Versioned document
-                                       break;
                                }
                        }
                        if (aDoc.getProgressState() != null) {