Skip to content

Commit

Permalink
Merge pull request #502 from YanxinXue/develop
Browse files Browse the repository at this point in the history
Add decode to import the export data which have been encode
  • Loading branch information
ivmartel authored Aug 20, 2018
2 parents 8db7751 + 035090f commit 24d030f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/drawController.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ dwv.DrawController = function (drawDiv)
"frame": position.frameNumber,
"type": type,
"color": shape.stroke(),
"label": text.textExpr,
"label": decodeURIComponent(text.textExpr),
"description": text.longText
});
}
Expand Down Expand Up @@ -410,7 +410,7 @@ dwv.DrawController = function (drawDiv)
var label = stateGroup.getChildren( dwv.draw.isNodeNameLabel )[0];
var text = label.getText();
// store details
text.textExpr = details.textExpr;
text.textExpr = decodeURIComponent(details.textExpr);
text.longText = details.longText;
text.quant = details.quant;
// reset text (it was not encoded)
Expand Down

0 comments on commit 24d030f

Please sign in to comment.