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

Commit d31cd76

Browse files
Merge pull request #1996 from livecode/bugfix-21528
[21528] Ensure graphics can be reshaped more than once for Object menu
2 parents 173e93d + 4e4ed6b commit d31cd76

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Toolset/libraries/revidelibrary.8.livecodescript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9294,7 +9294,8 @@ on revIDEToggleReshapeGraphic
92949294
revInternal__LoadLibrary "revReshapeLibrary"
92959295
revSetMarkers
92969296
else
9297-
revSetMarkers true
9297+
revSetMarkers "true"
9298+
92989299
revInternal__UnloadLibrary "revReshapeLibrary"
92999300
end if
93009301
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

notes/bugfix-21528.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure graphics can be reshaped more than once from the Object menu

0 commit comments

Comments
 (0)