7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-11 09:00:13 +00:00

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

View File

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