Fix Text height returning 0 if @text is blank

This commit is contained in:
2019-05-06 19:21:30 -05:00
parent 805077d232
commit 3be16c644f

View File

@@ -72,7 +72,7 @@ module CyberarmEngine
end end
def height def height
(@text.lines.count) * textobject.height @text.lines.count > 0 ? (@text.lines.count) * textobject.height : @textobject.height
end end
def draw def draw