Stop converting wxPoint(-1,-1) to QPoint(0,0) and vice versa

QPoint(0,0) is a valid position and there just doesn't seem to be any
good reason to make it invalid by mapping it to wxDefaultPosition.

Closes https://github.com/wxWidgets/wxWidgets/pull/1202
This commit is contained in:
Vadim Zeitlin
2019-01-30 18:04:42 +01:00
parent c5f9bed8ff
commit b5b415af87

View File

@@ -30,17 +30,11 @@
wxPoint wxQtConvertPoint( const QPoint &point )
{
if (point.isNull())
return wxDefaultPosition;
return wxPoint( point.x(), point.y() );
}
QPoint wxQtConvertPoint( const wxPoint &point )
{
if (point == wxDefaultPosition)
return QPoint();
return QPoint( point.x, point.y );
}