Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tests/pango.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ function pango.glyphstring()
local offset = items[i].offset
local length = items[i].length
local analysis = items[i].analysis
local pgs = Pango.GlyphString()
Pango.shape(string.sub(s,1+offset), length, analysis, pgs)
pgs = Pango.shape(string.sub(s,1+offset), length, analysis)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the reason of removing local here?

-- Pull out individual glyphs with pgs.glyphs
local glyphs = pgs.glyphs
check(type(glyphs) == 'table')
Expand Down
Loading