Commit 71d0f69b authored by jean-pierre charras's avatar jean-pierre charras

Fix new bug 791067 created by my last commit.

parent 9092dd0a
......@@ -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
{
......
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