jung-kurt / luahpdf

LuaHPDF is a module that lets you programmatically create PDF files using Lua.
23 stars 10 forks source link

hpdf.Font_TextWidth incorrectly puts numchars in all four return fields #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The wrapper for Font_TextWidth in luahpdf 1.0 creates a Lua table to pass back 
the contents of the returned HDF_TextWidth struct, but populates all four table 
fields (numchars, numwords, width, numspace) from the numchars field of the 
struct.

Very simple to patch, attached.

Original issue reported on code.google.com by mjwhite0@gmail.com on 17 Feb 2011 at 11:27

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for spotting this and providing fix.

Original comment by kurt.w.jung on 23 Feb 2012 at 5:53