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) {
strncpy(buffer, str, len);
buffer[len]=0;
- wxString cstr(buffer, wxConvUTF8);
+ wxString cstr(buffer, wxConvUTF8, len);
delete[] buffer;
return cstr;