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:
parent
1a9f0f8b8d
commit
481b29e6ce
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user