mirror of
https://github.com/pretix/pretix.git
synced 2026-08-13 11:17:01 +00:00
add comment regarding rotation direction
This commit is contained in:
@@ -929,6 +929,7 @@ class Renderer:
|
||||
bg_page = copy.copy(self.bg_pdf.pages[i])
|
||||
bg_rotation = bg_page.get('/Rotate')
|
||||
if bg_rotation:
|
||||
# /Rotate is clockwise, transformation.rotate is counter-clockwise
|
||||
t = Transformation().rotate(bg_rotation)
|
||||
w = float(page.mediabox.getWidth())
|
||||
h = float(page.mediabox.getHeight())
|
||||
|
||||
Reference in New Issue
Block a user