fixed off by one error in GetText
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -338,7 +338,7 @@ methodOverrideMap = {
|
||||
|
||||
'''wxString %s() {
|
||||
wxString text;
|
||||
int len = GetTextLength();
|
||||
int len = GetTextLength()+1;
|
||||
char* buff = text.GetWriteBuf(len+1);
|
||||
|
||||
SendMsg(%s, len, (long)buff);
|
||||
|
@@ -1077,7 +1077,7 @@ void wxStyledTextCtrl::SetText(const wxString& text) {
|
||||
// Retrieve all the text in the document.
|
||||
wxString wxStyledTextCtrl::GetText() {
|
||||
wxString text;
|
||||
int len = GetTextLength();
|
||||
int len = GetTextLength()+1;
|
||||
char* buff = text.GetWriteBuf(len+1);
|
||||
|
||||
SendMsg(2182, len, (long)buff);
|
||||
|
@@ -338,7 +338,7 @@ methodOverrideMap = {
|
||||
|
||||
'''wxString %s() {
|
||||
wxString text;
|
||||
int len = GetTextLength();
|
||||
int len = GetTextLength()+1;
|
||||
char* buff = text.GetWriteBuf(len+1);
|
||||
|
||||
SendMsg(%s, len, (long)buff);
|
||||
|
@@ -1077,7 +1077,7 @@ void wxStyledTextCtrl::SetText(const wxString& text) {
|
||||
// Retrieve all the text in the document.
|
||||
wxString wxStyledTextCtrl::GetText() {
|
||||
wxString text;
|
||||
int len = GetTextLength();
|
||||
int len = GetTextLength()+1;
|
||||
char* buff = text.GetWriteBuf(len+1);
|
||||
|
||||
SendMsg(2182, len, (long)buff);
|
||||
|
Reference in New Issue
Block a user