frame is nil in GridHeader_InitialConfigFunction #180


  • Defect
  • Fixed
Closed
Assigned to _ForgeUser117147
  • roncli created this issue Oct 18, 2010

    In r535, GridLayout.lua, the second argument of function GridHeader_InitialConfigFunction, "frame", is being passed in as nil, and thus throwing an error when nil is passed to RegisterFrame.

    The problem seems to be with the initialConfigFunction attribute, and I was able to fix it with the following changes to GridLayout.lua:

    Line 14:

    	Grid2Frame:RegisterFrame(loadstring("return " .. frame)())
    

    Line 50:

    				header:CallMethod("initialConfigFunction", self:GetName())
    

    The change passes the name of the frame as a string instead of the actual frame itself, and then the frame is retrieved the GridHeader_InitialConfigFunction via the name that was passed in.

    This, along with clearing the saved variables file of old Paladin spells, got Grid2 working for me again. HUGE THANKS FOR THE UPDATE!!!!

  • roncli added the tags New Defect Oct 18, 2010
  • roncli edited description Oct 18, 2010
  • _ForgeUser117147 posted a comment Oct 19, 2010

    Fixed in rev536. Thanks for the report.

  • _ForgeUser117147 removed a tag New Oct 19, 2010
  • _ForgeUser117147 added a tag Fixed Oct 19, 2010
  • _ForgeUser117147 closed issue Oct 19, 2010

To post a comment, please login or register a new account.