Remove redundant assignment

This assignment to the temporary variable is not necessary.
This commit is contained in:
Artur Wieczorek
2019-05-12 10:53:35 +02:00
parent 8e726db667
commit ca712c59fe

View File

@@ -2761,10 +2761,9 @@ void wxPropertyGrid::SwitchState( wxPropertyGridPageState* pNewState )
int pgWidth = GetClientSize().x;
if ( HasVirtualWidth() )
{
int minWidth = pgWidth;
if ( pNewState->GetVirtualWidth() < minWidth )
if ( pNewState->GetVirtualWidth() < pgWidth )
{
pNewState->m_width = minWidth;
pNewState->m_width = pgWidth;
pNewState->CheckColumnWidths();
}
}