Commit 2b25beb0 authored by Alexander Lunev's avatar Alexander Lunev Committed by Dick Hollenbeck
Browse files

Fix an issue with setting the Reference and Value of a module.

The bug was revealed on re-opening the saved version of a file imported by pcad2kicadpcb.
parent 781cc00a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -540,7 +540,7 @@ void PCB_MODULE::AddToBoard()
    TEXTE_MODULE* val_text = &module->Value();

    val_text->SetText( m_value.text );
    val_text->SetType( TEXTE_MODULE::TEXT_is_REFERENCE );
    val_text->SetType( TEXTE_MODULE::TEXT_is_VALUE );

    val_text->SetPos0( wxPoint( m_value.correctedPositionX, m_value.correctedPositionY ) );
    val_text->SetSize( wxSize( KiROUND( m_value.textHeight / 2 ),