Fix #11
Joe Vaughan [10-27-16 - 09:57]
Fix #11
testScale falling out of scope between if statements.
diff --git a/.gitignore b/.gitignore
index 93e3fac..9173f63 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
Thumbs.db
[Dd]ev*/
*.txt
+SVUI_!Core/assets/fonts/Combat.ttf.res
diff --git a/SVUI_!Core/system/api.lua b/SVUI_!Core/system/api.lua
index 56290ec..ea07e9e 100644
--- a/SVUI_!Core/system/api.lua
+++ b/SVUI_!Core/system/api.lua
@@ -1445,10 +1445,12 @@ function SV:UI_SCALE_CHANGED(event)
self.Screen:ClearAllPoints()
self.Screen:SetPoint("CENTER")
local ignoreChange = false;
+ local testScale1 = 0
+ local testScale2 = 0
if(managedScale) then
- local testScale1 = parsefloat(UIParent:GetScale(), 5);
- local testScale2 = parsefloat(gxScale, 5);
+ testScale1 = parsefloat(UIParent:GetScale(), 5);
+ testScale2 = parsefloat(gxScale, 5);
if(event == "PLAYER_LOGIN" and (testScale1 ~= testScale2)) then
SetCVar("useUiScale", 1)