From 1770bb2108f7e4d983cbbd7fd87e7634889f0eaa Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Thu, 22 Feb 2024 01:25:08 +0100 Subject: [PATCH] AceGUI-3.0: ColorPicker: Sanity check that alpha exists before calculating with it --- AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua b/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua index 671caea..3c071d2 100644 --- a/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua +++ b/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua @@ -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