From b5b415af874cf86f09d495f034b5d097c4c1d4ac Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 30 Jan 2019 18:04:42 +0100 Subject: [PATCH] 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 --- src/qt/converter.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/qt/converter.cpp b/src/qt/converter.cpp index fbc14a34c3..c9135843be 100644 --- a/src/qt/converter.cpp +++ b/src/qt/converter.cpp @@ -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 ); }