mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
fixing printing problem
This commit is contained in:
parent
8c6ef376b7
commit
06c736ab04
@ -248,7 +248,8 @@ mindplot.XMLMindmapSerializer_Pela.prototype.loadFromDom = function(dom)
|
||||
break;
|
||||
case "relationship":
|
||||
var relationship = this._deserializeRelationship(child,mindmap);
|
||||
mindmap.addRelationship(relationship);
|
||||
if(relationship!=null)
|
||||
mindmap.addRelationship(relationship);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -393,6 +394,10 @@ mindplot.XMLMindmapSerializer_Pela.prototype._deserializeRelationship = function
|
||||
var destCtrlPoint = domElement.getAttribute("destCtrlPoint");
|
||||
var endArrow = domElement.getAttribute("endArrow");
|
||||
var startArrow = domElement.getAttribute("startArrow");
|
||||
//If for some reason a relationship lines has source and dest nodes the same, don't import it.
|
||||
if(srcId==destId){
|
||||
return null;
|
||||
}
|
||||
var model = mindmap.createRelationship(srcId, destId);
|
||||
model.setLineType(lineType);
|
||||
if(core.Utils.isDefined(srcCtrlPoint) && srcCtrlPoint!=""){
|
||||
|
Loading…
Reference in New Issue
Block a user