Skip to content

Commit

Permalink
Safety check indicator scale
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Jan 15, 2021
1 parent a14ff16 commit 65d0140
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UnitFrameLayout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,9 @@ local function update_indicator_and_text_layout(frame)
local unscaled_height = element:GetHeight()
local height_multiplier = element.height or 1
local scale = indicator_size / unscaled_height * element_db.size * height_multiplier
if scale == 0 then -- size or height are somehow 0?
scale = 1
end
element:SetScale(scale)
scale_cache[element] = scale
else
Expand Down

0 comments on commit 65d0140

Please sign in to comment.