Skip to content

Commit

Permalink
[instancer] No need to check for scalar=1
Browse files Browse the repository at this point in the history
The scaleDeltas() function does it.
  • Loading branch information
behdad committed Aug 17, 2022
1 parent 1543c80 commit 9307d67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/fontTools/varLib/instancer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@ def changeTupleVariationAxisLimit(var, axisTag, axisLimit):
# location.
assert tent[1] != 0, tent
newVar.axes[axisTag] = tent
if scalar != 1:
newVar.scaleDeltas(scalar)
newVar.scaleDeltas(scalar)
out.append(newVar)

return out
Expand Down

0 comments on commit 9307d67

Please sign in to comment.