mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
PDF editor: Reduce precision size of empty page (Z#23112472) (#2935)
This commit is contained in:
committed by
GitHub
parent
f72a0b4c09
commit
547cfdffd6
@@ -156,8 +156,8 @@ class BaseEditorView(EventPermissionRequiredMixin, TemplateView):
|
||||
p = PdfWriter()
|
||||
try:
|
||||
p.add_blank_page(
|
||||
width=float(request.POST.get('width')) * mm,
|
||||
height=float(request.POST.get('height')) * mm,
|
||||
width=Decimal('%.5f' % (float(request.POST.get('width')) * mm)),
|
||||
height=Decimal('%.5f' % (float(request.POST.get('height')) * mm)),
|
||||
)
|
||||
except ValueError:
|
||||
return JsonResponse({
|
||||
|
||||
Reference in New Issue
Block a user