Skip to content

Commit 71ac985

Browse files
committed
add call to tie_mod:LocalizeFromPreferences
1 parent de6ca3a commit 71ac985

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/library/tie.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,13 +576,14 @@ end
576576
local activate_endpoint = function(note, tie_mod, placement, direction, for_endpoint, for_pageview, tie_prefs, tie_placement_prefs)
577577
local active_check_func = for_endpoint and tie_mod.IsEndPointActive or tie_mod.IsStartPointActive
578578
if active_check_func(tie_mod) then
579-
return
579+
return false
580580
end
581581
local for_tieend = not tie_mod:IsStartTie()
582582
local connect = tie.calc_connection_code(note, placement, direction, for_endpoint, for_tieend, for_pageview, tie_prefs)
583583
local xoffset, yoffset = calc_prefs_offset_for_endpoint(note, tie_prefs, tie_placement_prefs, placement, for_endpoint, for_tieend, for_pageview)
584584
local activation_func = for_endpoint and tie_mod.ActivateEndPoint or tie_mod.ActivateStartPoint
585585
activation_func(tie_mod, direction == finale.TIEMODDIR_OVER, connect, xoffset, yoffset)
586+
return true
586587
end
587588

588589
--[[
@@ -604,8 +605,11 @@ function tie.activate_endpoints(note, tie_mod, for_pageview, tie_prefs)
604605
local tie_placement_prefs = tie_prefs:CreateTiePlacementPrefs()
605606
local direction = tie.calc_direction(note, tie_mod, tie_prefs)
606607
local lplacement, rplacement = tie.calc_placement(note, tie_mod, for_pageview, direction, tie_prefs)
607-
activate_endpoint(note, tie_mod, lplacement, direction, false, for_pageview, tie_prefs, tie_placement_prefs)
608-
activate_endpoint(note, tie_mod, rplacement, direction, true, for_pageview, tie_prefs, tie_placement_prefs)
608+
local lactivated = activate_endpoint(note, tie_mod, lplacement, direction, false, for_pageview, tie_prefs, tie_placement_prefs)
609+
local ractivated = activate_endpoint(note, tie_mod, rplacement, direction, true, for_pageview, tie_prefs, tie_placement_prefs)
610+
if lactivated and ractivated then
611+
tie_mod:LocalizeFromPreferences()
612+
end
609613
end
610614

611615
return tie

0 commit comments

Comments
 (0)