Use wxSwap() function to swap values.
This commit is contained in:
@@ -469,9 +469,7 @@ wxSize wxToolBar::DoGetBestSize() const
|
|||||||
// reverse horz and vertical components if necessary
|
// reverse horz and vertical components if necessary
|
||||||
if ( IsVertical() )
|
if ( IsVertical() )
|
||||||
{
|
{
|
||||||
int t = sizeBest.x;
|
wxSwap(sizeBest.x, sizeBest.y);
|
||||||
sizeBest.x = sizeBest.y;
|
|
||||||
sizeBest.y = t;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else // TB_GETMAXSIZE succeeded
|
else // TB_GETMAXSIZE succeeded
|
||||||
|
Reference in New Issue
Block a user