Make sure transformation arguments are always valid.

This commit is contained in:
Roberto Rosario
2016-11-03 15:34:32 -04:00
parent 6fbbc7bacb
commit 2cdee10d50
3 changed files with 8 additions and 10 deletions

View File

@@ -98,8 +98,8 @@ def document_html_widget(document_page, click_view=None, click_view_arguments=No
document = document_page.document
query_dict = {
'zoom': zoom,
'rotation': rotation,
'zoom': zoom or DEFAULT_ZOOM_LEVEL,
'rotation': rotation or DEFAULT_ROTATION,
'size': size,
'page': document_page.page_number
}