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

Commit ef33052

Browse files
committed
[21528] Ensure graphics can be reshaped more than once for Object menu
1 parent 17feb6e commit ef33052

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9292,9 +9292,9 @@ on revIDEToggleReshapeGraphic
92929292
if "revReshapeLibrary" is not among the lines of revInternal__ListLoadedLibraries() then
92939293
choose pointer tool
92949294
revInternal__LoadLibrary "revReshapeLibrary"
9295-
revSetMarkers
9295+
send "revSetMarkers" to stack "revReshapeLibrary"
92969296
else
9297-
revSetMarkers true
9297+
send "revSetMarkers true" to stack "revReshapeLibrary"
92989298
revInternal__UnloadLibrary "revReshapeLibrary"
92999299
end if
93009300
end revIDEToggleReshapeGraphic

Toolset/libraries/revinitialisationlibrary.livecodescript

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ command revInternal__UnloadLibrary pLibraryName
9191
local tError, tLegacyError
9292
try
9393
// TODO: Remove legacy message name
94-
dispatch "revLoadLibrary" to stack tStackName
94+
dispatch "revUnloadLibrary" to stack tStackName
9595
if it is not "handled" then
96-
throw "No revUnloadLibrary handler found"
96+
throw "No revUnloadLibrary handler found"
9797
end if
9898
catch tLegacyError
9999
end try
@@ -109,7 +109,8 @@ command revInternal__UnloadLibrary pLibraryName
109109
if tError is not empty then
110110
return "Error while unloading library. Library" && pLibraryName \
111111
&& "did not complete the extensionFinalize request"
112-
end if
112+
end if
113+
delete variable sLoadedLibraries[pLibraryName]
113114
return empty
114115
end revInternal__UnloadLibrary
115116

0 commit comments

Comments
 (0)