diff --git a/Operations/CalculatePadding.lua b/Operations/CalculatePadding.lua index 61ad13e..25f5cf0 100644 --- a/Operations/CalculatePadding.lua +++ b/Operations/CalculatePadding.lua @@ -151,7 +151,7 @@ function Addon:CalculatePadding(tooltipData) -- pad last line do local lastLine = tooltipData[#tooltipData] - if self:GetOption"padLastLine" then + if self:GetOption"padLastLine" and tooltipData.realNumLines > tooltipData.numLines then if lastLine.type == "Padding" then if lastLine.hide then lastLine.hide = nil diff --git a/Operations/ScanTooltip.lua b/Operations/ScanTooltip.lua index dff5690..d53401b 100644 --- a/Operations/ScanTooltip.lua +++ b/Operations/ScanTooltip.lua @@ -117,7 +117,8 @@ function Addon:ReadTooltip(tooltip, name, link, maxLines) realColor = self:GetTextColorAsHex(realTextLeft), } end - tooltipData.numLines = #tooltipData + tooltipData.numLines = #tooltipData + tooltipData.realNumLines = tooltip.tooltip:NumLines() -- tooltipData.name = name -- tooltipData.link = link