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

Commit 6662ab9

Browse files
committed
[[ Drawing ]] Use try block to prevent revLibraryMapping throw
1 parent 617721d commit 6662ab9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extensions/script-libraries/drawing/drawing.livecodescript

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3273,8 +3273,10 @@ end seqLast
32733273
private function _GetResourcesPath
32743274
local tResourcesFolder
32753275
-- in the mapping, tResourcesFolder begins with ./
3276-
put char 3 to -1 of revLibraryMapping[the short name of me & slash & "resources"] \
3277-
into tResourcesFolder
3276+
try
3277+
put char 3 to -1 of revLibraryMapping[the short name of me & \
3278+
slash & "resources"] into tResourcesFolder
3279+
end try
32783280
if tResourcesFolder is empty then
32793281
set the itemDelimiter to slash
32803282
return item 1 to -2 of the filename of me & slash & "resources"

0 commit comments

Comments
 (0)