PDF Editor: Fix compatibility problems with older text objects

This commit is contained in:
Raphael Michel
2020-01-08 13:16:42 +01:00
parent 40da03f979
commit ca83a44489

View File

@@ -181,7 +181,9 @@ var editor = {
o.downward = d.downward || false;
o.content = d.content;
o.setTextAlign(d.align);
o.rotate(d.rotation);
if (d.rotation) {
o.rotate(d.rotation);
}
if (d.content === "other") {
o.setText(d.text);
} else {