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

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
......@@ -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 ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment