LibBars-1.0

2 - ShowLabel and ShowTimerLabel check for bars[self]

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.

User When Change
Tomber Mar 14, 2009 at 18:09 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated
Mar 14, 2009
Reported
Mar 14, 2009
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees