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

Commit 777afe1

Browse files
committed
[[ Bug ]] Fix message box errors
This patch fixes a couple of object reference errors in the message box when the handlers are executed while on the wrong card.
1 parent 4cae6ff commit 777afe1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Toolset/palettes/message box/behaviors/revmessageboxbehavior.livecodescript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,8 @@ private command __UpdateIntelligenceDisplay
667667
else
668668
local tControl
669669
put the name of it into tControl
670-
set the label of button "Open Stacks" of group "Stacks" of me to tIntelligence & ": " & tControl
671-
enable button "Open Stacks" of group "Stacks" of me
670+
set the label of button "Open Stacks" of group "Stacks" of card "Single Line" of me to tIntelligence & ": " & tControl
671+
enable button "Open Stacks" of group "Stacks" of card "Single Line" of me
672672
end if
673673
positionOpenStacksButton
674674
unlock messages

Toolset/palettes/message box/behaviors/revmessageboxsinglelinecardbehavior.livecodescript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ on layoutCard
6868
set the rect of field "results" of me to tLeft,(tTop + tHeight),tRight,tBottom
6969

7070
put (tRight - tLeft) into tWidth
71-
set the width of graphic "line" to tWidth
72-
set the loc of graphic "line" to (tWidth/2),(tTop+tHeight)
71+
set the width of graphic "line" of me to tWidth
72+
set the loc of graphic "line" of me to (tWidth/2),(tTop+tHeight)
7373

7474
unlock messages
7575
send "positionOpenStacksButton" to me in 0 milliseconds

0 commit comments

Comments
 (0)