pkulchenko / wxlua

wxlua: Lua bindings for wxWidgets cross-platform GUI toolkit; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and wxWidgets 3.x
306 stars 59 forks source link

wxLuaDataObjectSimple::GetDataHere() fix #99

Closed toshinagata closed 3 years ago

toshinagata commented 3 years ago

wxLuaDataObjectSimple::GetDataHere() is supposed to call the derived method in Lua, but the implementation was broken. LuaPCall(0, 2) should be LuaPCall(1, 2). In addition, the handling of the returned value is modified, so that wxMemoryBuffer can be returned.

pkulchenko commented 3 years ago

@toshinagata, merged. Thank you for the patch!