Don't truncate to int in wxRealPoint::operator*()
wxRealPoint uses double coordinates and it makes no sense to truncate the result of scaling it to int -- this was almost certainly a copy-and-paste error due to copying the code of the corresponding wxPoint method.
This commit is contained in:
parent
9774d92e91
commit
bec7c9a161
@ -547,12 +547,12 @@ inline wxRealPoint operator*(unsigned long i, const wxRealPoint& s)
|
||||
|
||||
inline wxRealPoint operator*(const wxRealPoint& s, double i)
|
||||
{
|
||||
return wxRealPoint(int(s.x * i), int(s.y * i));
|
||||
return wxRealPoint(s.x * i, s.y * i);
|
||||
}
|
||||
|
||||
inline wxRealPoint operator*(double i, const wxRealPoint& s)
|
||||
{
|
||||
return wxRealPoint(int(s.x * i), int(s.y * i));
|
||||
return wxRealPoint(s.x * i, s.y * i);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user