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:
Robin Dunn
2001-07-09 18:28:47 +00:00
parent 5dab6765c0
commit 0c7dcb7fd2
4 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);