Prevent axes settings from affecting angles in properties panel.
Fixes https://gitlab.com/kicad/code/kicad/issues/14168
This commit is contained in:
parent
efbd360440
commit
f7f15e1ddf
|
@ -81,9 +81,14 @@ wxPGWindowList PG_UNIT_EDITOR::CreateControls( wxPropertyGrid* aPropGrid, wxPGPr
|
||||||
m_unitBinder->SetUnits( m_frame->GetUserUnits() );
|
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() );
|
||||||
|
}
|
||||||
else if( dynamic_cast<PGPROPERTY_ANGLE*>( aProperty ) != nullptr )
|
else if( dynamic_cast<PGPROPERTY_ANGLE*>( aProperty ) != nullptr )
|
||||||
|
{
|
||||||
|
m_unitBinder->SetCoordType( ORIGIN_TRANSFORMS::NOT_A_COORD );
|
||||||
m_unitBinder->SetUnits( EDA_UNITS::DEGREES );
|
m_unitBinder->SetUnits( EDA_UNITS::DEGREES );
|
||||||
|
}
|
||||||
|
|
||||||
UpdateControl( aProperty, win );
|
UpdateControl( aProperty, win );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue