mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-25 12:43:50 +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();
|
final List<RelationshipType> relationships = mindmapMap.getRelationship();
|
||||||
for (RelationshipType relationship : relationships) {
|
for (RelationshipType relationship : relationships) {
|
||||||
Node srcNode = nodesMap.get(relationship.getSrcTopicId());
|
// FIXME:invert srcNode and dstNode to correct a bug in the wise mind map representation
|
||||||
Node dstNode = nodesMap.get(relationship.getDestTopicId());
|
Node srcNode = nodesMap.get(relationship.getDestTopicId());
|
||||||
|
Node dstNode = nodesMap.get(relationship.getSrcTopicId());
|
||||||
|
|
||||||
|
|
||||||
// Workaround for nodes without relationship associated ...
|
// Workaround for nodes without relationship associated ...
|
||||||
|
@ -322,8 +322,9 @@ public class FreemindImporter
|
|||||||
final Arrowlink arrow = (Arrowlink) element;
|
final Arrowlink arrow = (Arrowlink) element;
|
||||||
RelationshipType relt = mindmapObjectFactory.createRelationshipType();
|
RelationshipType relt = mindmapObjectFactory.createRelationshipType();
|
||||||
String destId = arrow.getDESTINATION();
|
String destId = arrow.getDESTINATION();
|
||||||
relt.setSrcTopicId(freeParent.getID());
|
// FIXME: invert srcTopic and dstTopic to correct a bug in the wise mind map representation
|
||||||
relt.setDestTopicId(destId);
|
relt.setSrcTopicId(destId);
|
||||||
|
relt.setDestTopicId(freeParent.getID());
|
||||||
final String endinclination = arrow.getENDINCLINATION();
|
final String endinclination = arrow.getENDINCLINATION();
|
||||||
if (endinclination != null) {
|
if (endinclination != null) {
|
||||||
String[] inclination = endinclination.split(";");
|
String[] inclination = endinclination.split(";");
|
||||||
|
Loading…
Reference in New Issue
Block a user