Skip to content

Commit

Permalink
fix(math): Fix underover error with sub wider than base but no sup
Browse files Browse the repository at this point in the history
Fix error produced by underover when sub is wider than base and there is no sup
  • Loading branch information
cmfwyp authored Sep 22, 2021
1 parent 75b6748 commit bc87393
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/math/base-elements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,14 @@ elements.underOver = pl.class({
widest = self.sub
a = self.base
b = self.sup
else
elseif self.sup then
widest = self.sup
a = self.base
b = self.sub
else
widest = self.sub
a = self.base
b = nil
end
else
if self.sup and self.base.width > self.sup.width then
Expand Down

0 comments on commit bc87393

Please sign in to comment.