fixed nil index error in tabbutton:initialize

This commit is contained in:
Kenny Shields 2013-09-17 22:22:11 -04:00
parent bb5135c8e7
commit 12ba65041f

View File

@ -32,7 +32,7 @@ function newobject:initialize(parent, text, tabnumber, tip, image, onopened, onc
self.tooltip = loveframes.objects["tooltip"]:new(self, tip)
self.tooltip:SetFollowCursor(false)
self.tooltip:SetFollowObject(true)
self.tooltip:SetOffsets(0, -(self.tooltip.text:GetHeight() + 12))
self.tooltip:SetOffsets(0, -(self.tooltip.internals[1]:GetHeight() + 12))
end
if image then