Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Commit b0bccb6

Browse files
committed
Fixed bug 10861 - ensure layer property is signalled when 'relayer' command executed.
1 parent 6eaf9b8 commit b0bccb6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

engine/src/cmdsc.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2780,6 +2780,10 @@ Exec_stat MCRelayer::exec(MCExecPoint& ep)
27802780
{
27812781
t_new_owner -> relayercontrol(static_cast<MCControl *>(t_source), t_new_target);
27822782

2783+
// MW-2013-04-29: [[ Bug 10861 ]] Make sure we trigger a property update as 'layer'
2784+
// is changing.
2785+
t_source -> signallisteners(P_LAYER);
2786+
27832787
if (t_card -> getstack() == MCmousestackptr && MCU_point_in_rect(t_source->getrect(), MCmousex, MCmousey))
27842788
t_card -> mfocus(MCmousex, MCmousey);
27852789
}
@@ -2809,6 +2813,10 @@ Exec_stat MCRelayer::exec(MCExecPoint& ep)
28092813
{
28102814
t_source -> getparent() -> relayercontrol_remove(static_cast<MCControl *>(t_source));
28112815
t_new_owner -> relayercontrol_insert(static_cast<MCControl *>(t_source), t_new_target);
2816+
2817+
// MW-2013-04-29: [[ Bug 10861 ]] Make sure we trigger a property update as 'layer'
2818+
// is changing.
2819+
t_source -> signallisteners(P_LAYER);
28122820
}
28132821
else
28142822
{

0 commit comments

Comments
 (0)