mirror of
https://github.com/pretix/pretix.git
synced 2026-08-23 12:51:59 +00:00
PDF Editor: Fix compatibility problems with older text objects
This commit is contained in:
@@ -181,7 +181,9 @@ var editor = {
|
|||||||
o.downward = d.downward || false;
|
o.downward = d.downward || false;
|
||||||
o.content = d.content;
|
o.content = d.content;
|
||||||
o.setTextAlign(d.align);
|
o.setTextAlign(d.align);
|
||||||
o.rotate(d.rotation);
|
if (d.rotation) {
|
||||||
|
o.rotate(d.rotation);
|
||||||
|
}
|
||||||
if (d.content === "other") {
|
if (d.content === "other") {
|
||||||
o.setText(d.text);
|
o.setText(d.text);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user