Skip to content

Commit 7b78fe2

Browse files
Merge pull request livecode#5748 from livecodepanos/bugfix-20201
[20201] Ensure `the controlNames` works with grouped controls too
2 parents b67ff5e + 81cebfc commit 7b78fe2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

docs/notes/bugfix-20201.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure `the controlNames` does not return numbers instead of names for controls in groups

engine/src/exec-interface-group.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ void MCGroup::GetPropList(MCExecContext& ctxt, Properties which, uint32_t part_i
711711
{
712712
MCAutoStringRef t_property;
713713

714-
if (which == P_CHILD_CONTROL_NAMES)
714+
if (which == P_CHILD_CONTROL_NAMES || which == P_CONTROL_NAMES)
715715
{
716716
t_object -> GetShortName(ctxt, &t_property);
717717
t_success = !ctxt . HasError();

0 commit comments

Comments
 (0)