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:
parent
fc29e86ef7
commit
bec17edf4e
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user