Browse Source

Fix new bug 791067 created by my last commit.

pull/1/head
jean-pierre charras 15 years ago
parent
commit
71d0f69bab
  1. 4
      eeschema/edit_component_in_schematic.cpp

4
eeschema/edit_component_in_schematic.cpp

@ -173,7 +173,7 @@ create a new power component with the new value." ), GetChars( entry->GetName()
if( !newtext.IsEmpty() )
{
if( aField->m_Text.IsEmpty() )
if( aField->m_Text.IsEmpty() ) // Means the field was not already in use
{
aField->m_Pos = component->m_Pos;
aField->m_Size.x = aField->m_Size.y = m_TextFieldSize;
@ -192,6 +192,8 @@ create a new power component with the new value." ), GetChars( entry->GetName()
DisplayError( this, _( "Illegal reference string! No change" ) );
}
}
else
aField->m_Text = newtext;
}
else
{

Loading…
Cancel
Save