fixed line height

This commit is contained in:
Vadim
2015-09-19 19:47:37 -04:00
parent 72870dff76
commit c596c91d8d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -242,7 +242,7 @@
if (isNaN(fontSize))
throw new TypeError('Cannot parse "font".');
if (isNaN(opts.lineHeight))
if (isNaN(lineHeight))
throw new TypeError('Cannot parse "lineHeight".');
if (opts.textAlign.toLocaleLowerCase() !== 'left' && opts.textAlign.toLocaleLowerCase() !== 'center' && opts.textAlign.toLocaleLowerCase() !== 'right')