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:
@@ -66,16 +66,10 @@ QDate wxQtConvertDate(const wxDateTime& date);
|
|||||||
|
|
||||||
inline wxSize wxQtConvertSize( const QSize &size )
|
inline wxSize wxQtConvertSize( const QSize &size )
|
||||||
{
|
{
|
||||||
if (size.isNull())
|
|
||||||
return wxDefaultSize;
|
|
||||||
|
|
||||||
return wxSize(size.width(), size.height());
|
return wxSize(size.width(), size.height());
|
||||||
}
|
}
|
||||||
inline QSize wxQtConvertSize( const wxSize &size )
|
inline QSize wxQtConvertSize( const wxSize &size )
|
||||||
{
|
{
|
||||||
if (size == wxDefaultSize)
|
|
||||||
return QSize();
|
|
||||||
|
|
||||||
return QSize(size.GetWidth(), size.GetHeight());
|
return QSize(size.GetWidth(), size.GetHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user