DOCX: Text borders must be >= 1pt to be rendered

This commit is contained in:
Kovid Goyal 2013-06-06 08:25:38 +05:30
parent ef0f0093f8
commit 2e7d406aac

View File

@ -36,7 +36,8 @@ def read_text_border(parent, dest):
if sz is not None:
# we dont care about art borders (they are only used for page borders)
try:
border_width = min(96, max(2, float(sz))) / 8
# A border of less than 1pt is not rendered by WebKit
border_width = min(96, max(8, float(sz))) / 8
except (ValueError, TypeError):
pass