Skip to content

Commit

Permalink
AceGUI-3.0: ColorPicker: Sanity check that alpha exists before calcul…
Browse files Browse the repository at this point in the history
…ating with it
  • Loading branch information
Nevcairiel committed Feb 22, 2024
1 parent 1384284 commit 1770bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local INVERTED_ALPHA = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE)
Support functions
-------------------------------------------------------------------------------]]
local function ColorCallback(self, r, g, b, a, isAlpha)
if INVERTED_ALPHA then
if INVERTED_ALPHA and a then
a = 1 - a
end
if not self.HasAlpha then
Expand Down

0 comments on commit 1770bb2

Please sign in to comment.