mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Merge pull request #1655 from swt2c/fix_customobj_setdata
Fix stack overflow when overriding wx.CustomObject.SetData
This commit is contained in:
@@ -340,11 +340,11 @@ def run():
|
||||
body="return wxPyMakeBuffer(self->GetData(), self->GetSize());")
|
||||
|
||||
c.find('SetData').ignore()
|
||||
c.addCppMethod('bool', 'SetData', '(wxPyBuffer* buf)',
|
||||
c.addCppMethod_sip('bool', 'SetData', '(wxPyBuffer* buf)',
|
||||
cppSignature='bool (size_t len, const void* buf)',
|
||||
isVirtual=True,
|
||||
doc="Copies data from the provided buffer to this data object's buffer",
|
||||
body="return self->SetData(buf->m_len, buf->m_ptr);")
|
||||
body="sipRes = (sipSelfWasArg ? sipCpp-> ::wxCustomDataObject::SetData(buf->m_len, buf->m_ptr) : sipCpp->SetData(buf->m_len, buf->m_ptr));")
|
||||
|
||||
addGetAllFormats(c)
|
||||
addBaseVirtuals(c)
|
||||
|
||||
Reference in New Issue
Block a user