Skip to content
Snippets Groups Projects
Commit 0d30c4e2 authored by Luigi Scarso's avatar Luigi Scarso
Browse files

fixed l_reserveobj (thanks to Marcel F. Krüger zauguin@gmail.com )

parent 343e5f78
No related branches found
No related tags found
No related merge requests found
......@@ -494,6 +494,7 @@ static int l_reserveobj(lua_State * L)
case 1:
if (!lua_isstring(L, -1))
luaL_error(L, "pdf.reserveobj() optional argument must be string");
st_s = luaL_checkstring(L, 1);
if (lua_key_eq(st_s, annot)) {
pdf_last_annot = pdf_create_obj(static_pdf, obj_type_annot, 0);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment