Properties: make sure to reset binder units when changing rows

This commit is contained in:
Jon Evans 2022-12-05 23:46:01 -05:00
parent 8003e9ab50
commit c326c57e05
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ wxPGWindowList PG_UNIT_EDITOR::CreateControls( wxPropertyGrid* aPropGrid, wxPGPr
m_unitBinder->SetControl( win ); m_unitBinder->SetControl( win );
m_unitBinder->RequireEval(); m_unitBinder->RequireEval();
m_unitBinder->SetUnits( m_frame->GetUserUnits() );
if( PGPROPERTY_DISTANCE* prop = dynamic_cast<PGPROPERTY_DISTANCE*>( aProperty ) ) if( PGPROPERTY_DISTANCE* prop = dynamic_cast<PGPROPERTY_DISTANCE*>( aProperty ) )
m_unitBinder->SetCoordType( prop->CoordType() ); m_unitBinder->SetCoordType( prop->CoordType() );