Skip to content

Commit e480941

Browse files
committed
Update ties_remove_dangling.lua
1 parent f418dcf commit e480941

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/ties_remove_dangling.lua

+3-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function plugindef()
33
-- are both reserved for the plug-in definition.
44
finaleplugin.Author = "Jacob Winkler"
55
finaleplugin.Copyright = "2024"
6-
finaleplugin.Version = "1.2&"
6+
finaleplugin.Version = "1.2"
77
finaleplugin.Date = "2024-02-06"
88
finaleplugin.AuthorEmail = "[email protected]"
99
finaleplugin.AdditionalMenuOptions = [[
@@ -30,12 +30,8 @@ replace_with_slur = replace_with_slur or false
3030

3131
local tie = require("library.tie")
3232
local smartshape = require("library.smartshape")
33-
34-
local music_region = finale.FCMusicRegion()
35-
music_region:SetCurrentSelection()
36-
if music_region:IsEmpty() then
37-
music_region:SetFullDocument()
38-
end
33+
local library = require("library.general_library")
34+
local music_region = library.get_selected_region_or_whole_doc()
3935

4036
for working_staff = music_region:GetStartStaff(), music_region:GetEndStaff() do
4137
for layer_num = 0, 3, 1 do

0 commit comments

Comments
 (0)