git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26548
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
// calculate the best size if we should auto size the window
}
// calculate the best size if we should auto size the window
- if ( (sizeFlags & wxSIZE_AUTO_WIDTH) ||
- (sizeFlags & wxSIZE_AUTO_HEIGHT) )
+ if ( ((sizeFlags & wxSIZE_AUTO_WIDTH) && width == -1) ||
+ ((sizeFlags & wxSIZE_AUTO_HEIGHT) && height == -1) )
{
const wxSize sizeBest = GetBestSize();
{
const wxSize sizeBest = GetBestSize();
- if ( sizeFlags & wxSIZE_AUTO_WIDTH )
+ if ( (sizeFlags & wxSIZE_AUTO_WIDTH) && width == -1 )
- if ( sizeFlags & wxSIZE_AUTO_HEIGHT )
+ if ( (sizeFlags & wxSIZE_AUTO_HEIGHT) && height == -1 )
}
// calculate the best size if we should auto size the window
}
// calculate the best size if we should auto size the window
- if ( (sizeFlags & wxSIZE_AUTO_WIDTH) ||
- (sizeFlags & wxSIZE_AUTO_HEIGHT) )
+ if ( ((sizeFlags & wxSIZE_AUTO_WIDTH) && width == -1) ||
+ ((sizeFlags & wxSIZE_AUTO_HEIGHT) && height == -1) )
{
const wxSize sizeBest = GetBestSize();
{
const wxSize sizeBest = GetBestSize();
- if ( sizeFlags & wxSIZE_AUTO_WIDTH )
+ if ( (sizeFlags & wxSIZE_AUTO_WIDTH) && width == -1 )
- if ( sizeFlags & wxSIZE_AUTO_HEIGHT )
+ if ( (sizeFlags & wxSIZE_AUTO_HEIGHT) && height == -1 )