[BUG] Can't view Compiled Template, if macro is empty
Opened this issue · 3 comments
Describe the bug
Can't view Compiled Template if macro is empty.
To Reproduce
Steps to reproduce the behavior:
- Type '/gse' in Chat Frame
- Click on 'New'
- Click 'Delete Block" for default entry
- Click on 'Save"
- Click on 'Compiled template'
- Lua Error
Expected behavior
Either an empty view or a warning should be shown.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 10 (19043)
- Game Version: 9.1.0 (39262)
GSE Version
- Version: 3.0.14
- Downloaded From: Ajour (Curse
Additional context
Clicking Compiled Template for an empty macro Lua Error
Message: Interface\AddOns\GSE_GUI\MacroPreview.lua:53: attempt to call method 'GetWidth' (a nil value)
Time: Sat Jul 3 21:00:46 2021
Count: 1
Stack: Interface\AddOns\GSE_GUI\MacroPreview.lua:53: attempt to call method 'GetWidth' (a nil value)
[string "@interface\AddOns\GSE_GUI\MacroPreview.lua"]:53: in functionGUIShowCompiledMacroGui' [string "@Interface\AddOns\GSE_GUI\Editor.lua"]:914: in function <Interface\AddOns\GSE_GUI\Editor.lua:912> [string "=[C]"]: ? [string "@Interface\AddOns\Bartender4\libs\AceGUI-3.0\AceGUI-3.0.lua"]:72: in function <...ace\AddOns\Bartender4\libs\AceGUI-3.0\AceGUI-3.0.lua:70> [string "@Interface\AddOns\Bartender4\libs\AceGUI-3.0\AceGUI-3.0.lua"]:306: in function
Fire'
[string "@interface\AddOns\Bartender4\libs\AceGUI-3.0\widgets\AceGUIWidget-Button.lua"]:22: in function <...der4\libs\AceGUI-3.0\widgets\AceGUIWidget-Button.lua:19>Locals:
No blocks at all.
{
["Variables"] = {
},
["Actions"] = {
},
["InbuiltVariables"] = {
}
}
Compiles and saves, but obviously doesn't show a Compiled Template.