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

Commit f4914d1

Browse files
committed
[[ DefaultHandlers ]] Make sure textSetScriptRaw is still always called
Removing this call previously caused objects with empty scripts to acquire the non-empty script of the currently displayed object.
1 parent cfcf4f6 commit f4914d1

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

Toolset/palettes/script editor/behaviors/revseeditorbehavior.livecodescript

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -330,16 +330,14 @@ command loadScript
330330
# If there is a cached script, this means that the user is coming back to this object from another tab.
331331
textSetScriptRaw tCachedScript
332332
else
333-
# If the object has no script, get the default script for it, otherwise the current script is used
334-
if the script of sObjectId is not empty then
335-
local tScript
336-
put the script of sObjectId into tScript
337-
338-
textSetScriptRaw tScript
339-
340-
# OK-2008-07-07 : Bug 6746
341-
seUpdateCheckSum sObjectId, tScript
342-
else
333+
local tScript
334+
put the script of sObjectId into tScript
335+
336+
textSetScriptRaw tScript
337+
338+
# OK-2008-07-07 : Bug 6746
339+
seUpdateCheckSum sObjectId, tScript
340+
if tScript is empty then
343341
select before field "Script" of me
344342
end if
345343
end if

0 commit comments

Comments
 (0)