]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/stc.cpp
implemented EVT_LIST_CACHE_HINT support: send this message from OnPaint() now
[wxWidgets.git] / src / stc / stc.cpp
index 4fb35f564e5453c8711bf49d14af38f982199744..35655c34114507e1ececceaa5a046a2f9c967c08 100644 (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);