diff --git a/Nasal/canvas/map.nas b/Nasal/canvas/map.nas index e6989aad0..751541090 100644 --- a/Nasal/canvas/map.nas +++ b/Nasal/canvas/map.nas @@ -492,7 +492,7 @@ var GenericMap = { }; # so this needs to be called in the dialog's OPEN block instead - TODO: generalize #FIXME: move somewhere else, this is a GUI helper and should probably be generalized and moved to gui.nas GenericMap.setupGUI = func (dialog, group) { - var group = gui.findElementByName(cmdarg() , group); + var group = globals.gui.findElementByName(cmdarg() , group); var layers=dialog.getNode("features").getChildren("layer"); var template = dialog.getNode("checkbox-toggle-template");