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.
This commit is contained in:
Alexander Lunev 2013-06-20 15:53:23 -05:00 committed by Dick Hollenbeck
parent 781cc00aca
commit 2b25beb074
1 changed files with 1 additions and 1 deletions

View File

@ -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 ),