mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-13 02:17:55 +01:00
hack fix for relationships when import/export for freemind
This commit is contained in:
parent
a6a79e9f94
commit
8b6764af17
@ -99,8 +99,9 @@ public class FreemindExporter
|
||||
|
||||
final List<RelationshipType> relationships = mindmapMap.getRelationship();
|
||||
for (RelationshipType relationship : relationships) {
|
||||
Node srcNode = nodesMap.get(relationship.getSrcTopicId());
|
||||
Node dstNode = nodesMap.get(relationship.getDestTopicId());
|
||||
// FIXME:invert srcNode and dstNode to correct a bug in the wise mind map representation
|
||||
Node srcNode = nodesMap.get(relationship.getDestTopicId());
|
||||
Node dstNode = nodesMap.get(relationship.getSrcTopicId());
|
||||
|
||||
|
||||
// Workaround for nodes without relationship associated ...
|
||||
|
@ -322,8 +322,9 @@ public class FreemindImporter
|
||||
final Arrowlink arrow = (Arrowlink) element;
|
||||
RelationshipType relt = mindmapObjectFactory.createRelationshipType();
|
||||
String destId = arrow.getDESTINATION();
|
||||
relt.setSrcTopicId(freeParent.getID());
|
||||
relt.setDestTopicId(destId);
|
||||
// FIXME: invert srcTopic and dstTopic to correct a bug in the wise mind map representation
|
||||
relt.setSrcTopicId(destId);
|
||||
relt.setDestTopicId(freeParent.getID());
|
||||
final String endinclination = arrow.getENDINCLINATION();
|
||||
if (endinclination != null) {
|
||||
String[] inclination = endinclination.split(";");
|
||||
|
Loading…
Reference in New Issue
Block a user