Stop mapping QSize(0,0) to wxSize(-1,-1) as well

Do this for consistency with a similar recent change to wxPoint.
This commit is contained in:
Vadim Zeitlin 2019-01-30 18:15:20 +01:00
parent 1a9f0f8b8d
commit 481b29e6ce

View File

@ -66,16 +66,10 @@ QDate wxQtConvertDate(const wxDateTime& date);
inline wxSize wxQtConvertSize( const QSize &size )
{
if (size.isNull())
return wxDefaultSize;
return wxSize(size.width(), size.height());
}
inline QSize wxQtConvertSize( const wxSize &size )
{
if (size == wxDefaultSize)
return QSize();
return QSize(size.GetWidth(), size.GetHeight());
}