]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMemoryBuffer typemap needs to set the data length
authorRobin Dunn <robin@alldunn.com>
Fri, 7 May 2004 22:17:13 +0000 (22:17 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 7 May 2004 22:17:13 +0000 (22:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/my_typemaps.i

index 9e4c01a0c22aea7280278b2374da223042cda3f3..d9b078bc4e3baa7c5f3e4fceb65de637d59be9d9 100644 (file)
     $1 = new wxMemoryBuffer(len);
     temp = True;
     memcpy($1->GetData(), str, len);
     $1 = new wxMemoryBuffer(len);
     temp = True;
     memcpy($1->GetData(), str, len);
+    $1->SetDataLen(len);
 }
 
 %typemap(freearg) wxMemoryBuffer& {
 }
 
 %typemap(freearg) wxMemoryBuffer& {