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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user