From ca83a44489fb41563eb92abc34d0ba8ff447ecff Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 8 Jan 2020 13:16:42 +0100 Subject: [PATCH] PDF Editor: Fix compatibility problems with older text objects --- src/pretix/static/pretixcontrol/js/ui/editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pretix/static/pretixcontrol/js/ui/editor.js b/src/pretix/static/pretixcontrol/js/ui/editor.js index 443c7c680..f596f430f 100644 --- a/src/pretix/static/pretixcontrol/js/ui/editor.js +++ b/src/pretix/static/pretixcontrol/js/ui/editor.js @@ -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 {