X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d13ea3aa4f95c30358fcfb8af8b183191779ec81..31d7fc0f9cb3f5913ecd4a039a816487a6753a93:/contrib/src/stc/PlatWX.cpp?ds=inline diff --git a/contrib/src/stc/PlatWX.cpp b/contrib/src/stc/PlatWX.cpp index a48c084f65..46d478e701 100644 --- a/contrib/src/stc/PlatWX.cpp +++ b/contrib/src/stc/PlatWX.cpp @@ -35,7 +35,7 @@ wxRect wxRectFromPRectangle(PRectangle prc) { PRectangle PRectangleFromwxRect(wxRect rc) { return PRectangle(rc.GetLeft(), rc.GetTop(), - rc.GetRight(), rc.GetBottom()); + rc.GetRight()+1, rc.GetBottom()+1); } wxColour wxColourFromCA(const ColourAllocated& ca) { @@ -1233,7 +1233,7 @@ wxString stc2wx(const char* str, size_t len) strncpy(buffer, str, len); buffer[len]=0; - wxString cstr(buffer, wxConvUTF8); + wxString cstr(buffer, wxConvUTF8, len); delete[] buffer; return cstr;