append alpha for 3 digit hex colors, fix #4021

This commit is contained in:
dessant 2016-02-22 09:51:07 +02:00
parent 509f53f5d7
commit 1029f09366
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ def parse_color(text):
for i in range(0, len(res), 2)]
except ValueError:
return color_error('ColorParser: Invalid color for %r' % text)
if lres == 6:
if lres == 6 or lres == 3:
value.append(1.)
return value