Fixed an off-by-one error in the rectangle converter

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2002-01-05 22:49:02 +00:00
parent fc29e86ef7
commit bec17edf4e
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,8 @@ wxRect wxRectFromPRectangle(PRectangle prc) {
}
PRectangle PRectangleFromwxRect(wxRect rc) {
return PRectangle(rc.GetLeft(), rc.GetTop(), rc.GetRight(), rc.GetBottom());
return PRectangle(rc.GetLeft(), rc.GetTop(),
rc.GetRight()+1, rc.GetBottom()+1);
}
Colour::Colour(long lcol) {

View File

@ -25,7 +25,8 @@ wxRect wxRectFromPRectangle(PRectangle prc) {
}
PRectangle PRectangleFromwxRect(wxRect rc) {
return PRectangle(rc.GetLeft(), rc.GetTop(), rc.GetRight(), rc.GetBottom());
return PRectangle(rc.GetLeft(), rc.GetTop(),
rc.GetRight()+1, rc.GetBottom()+1);
}
Colour::Colour(long lcol) {