ShowLabel and ShowTimerLabel check for bars[self] #2


  • New
  • Defect
Open
Assigned to ardentvark
  • Tojaso1 created this issue Mar 14, 2009

    What steps will reproduce the problem?
    1. ShowLabel, HideLabel, ShowTimerLabel, HideTimerLabel on empty bar groups

    What is the expected output? What do you see instead?

    Expect to set bar group property. Causes error "bad argument #1 to pairs" when attempting to also set properties for non-existent bars.

    What version of the product are you using?

    r16

    Please provide any additional information below.

    Adding "if not bars[self] then return end" to each of these functions fixes the problem. This is same code already included in ShowIcon and HideIcon.

  • Tojaso1 added the tags New Defect Mar 14, 2009

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