Footprint item positions are relative.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15477
This commit is contained in:
Jeff Young
2023-09-21 14:28:25 +01:00
parent 8d06a794f4
commit 9e2fc9b07c
+10 -2
View File
@@ -51,8 +51,16 @@ DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES( PCB_BASE_EDIT_FRAME* aParent, PC
wxString title;
// Configure display origin transforms
m_posX.SetCoordType( ORIGIN_TRANSFORMS::ABS_X_COORD );
m_posY.SetCoordType( ORIGIN_TRANSFORMS::ABS_Y_COORD );
if( m_item->GetParentFootprint() )
{
m_posX.SetCoordType( ORIGIN_TRANSFORMS::REL_X_COORD );
m_posY.SetCoordType( ORIGIN_TRANSFORMS::REL_Y_COORD );
}
else
{
m_posX.SetCoordType( ORIGIN_TRANSFORMS::ABS_X_COORD );
m_posY.SetCoordType( ORIGIN_TRANSFORMS::ABS_Y_COORD );
}
m_MultiLineText->SetEOLMode( wxSTC_EOL_LF );