Skip to content

Commit

Permalink
Fix wrong backport in 9414fde
Browse files Browse the repository at this point in the history
The backport fix from #9735 needs to be adapted to current 1.4 lua file context
  • Loading branch information
cderv committed May 31, 2024
1 parent 04bdbed commit 7083b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/filters/customnodes/floatreftarget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function cap_location(float_or_layout)
ref = refType(float_or_layout.attributes["ref-parent"] or "")
end
if ref == nil or crossref.categories.by_ref_type[ref] == nil then
if obj.t == "Table" then
if float_or_layout.t == "Table" then
ref = "tbl"
else
-- last resort, pretend we're a figure
Expand Down

0 comments on commit 7083b26

Please sign in to comment.