Remove redundant assignment
This assignment to the temporary variable is not necessary.
This commit is contained in:
@@ -2761,10 +2761,9 @@ void wxPropertyGrid::SwitchState( wxPropertyGridPageState* pNewState )
|
|||||||
int pgWidth = GetClientSize().x;
|
int pgWidth = GetClientSize().x;
|
||||||
if ( HasVirtualWidth() )
|
if ( HasVirtualWidth() )
|
||||||
{
|
{
|
||||||
int minWidth = pgWidth;
|
if ( pNewState->GetVirtualWidth() < pgWidth )
|
||||||
if ( pNewState->GetVirtualWidth() < minWidth )
|
|
||||||
{
|
{
|
||||||
pNewState->m_width = minWidth;
|
pNewState->m_width = pgWidth;
|
||||||
pNewState->CheckColumnWidths();
|
pNewState->CheckColumnWidths();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user