Fix new bug 791067 created by my last commit.

This commit is contained in:
jean-pierre charras 2011-06-01 10:45:34 +02:00
parent 9092dd0aec
commit 71d0f69bab
1 changed files with 3 additions and 1 deletions

View File

@ -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
{