Small logic change to improve SAUCE handling
This commit is contained in:
@@ -49,7 +49,7 @@ function getFontNameFromSAUCE(sauce) {
|
|||||||
function getWidthFromSAUCE(sauce) {
|
function getWidthFromSAUCE(sauce) {
|
||||||
if (sauce.Character) {
|
if (sauce.Character) {
|
||||||
let sauceWidth = _.toNumber(sauce.Character.characterWidth);
|
let sauceWidth = _.toNumber(sauce.Character.characterWidth);
|
||||||
if(!(_.isNaN(sauceWidth) && sauceWidth > 0)) {
|
if(!(_.isNaN(sauceWidth)) && sauceWidth > 0) {
|
||||||
return sauceWidth;
|
return sauceWidth;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user