Commit 61454f01 authored by CHARRAS's avatar CHARRAS

eeschema: problem when undelete after a change a label type solved (I hope)

parent 1d16eae0
...@@ -14,8 +14,7 @@ email address. ...@@ -14,8 +14,7 @@ email address.
- reference not copied in component copy. - reference not copied in component copy.
- incorrect redo when changing the chip name in component edition - incorrect redo when changing the chip name in component edition
bugs not fixed bugs not fixed:
- undo/redo problems when changing a text type between text, label, global label and hierarchical label
- incorrect annotation in complex hierarchy with multi parts per package (duplicates created). - incorrect annotation in complex hierarchy with multi parts per package (duplicates created).
......
...@@ -396,7 +396,8 @@ void WinEDA_SchematicFrame::ConvertTextType( DrawTextStruct* Text, ...@@ -396,7 +396,8 @@ void WinEDA_SchematicFrame::ConvertTextType( DrawTextStruct* Text,
GetScreen()->SetCurItem( NULL ); GetScreen()->SetCurItem( NULL );
g_ItemToRepeat = NULL; g_ItemToRepeat = NULL;
} }
GetScreen()->SetCurItem( newtext );
GetScreen()->SetCurItem( NULL );
SAFE_DELETE( g_ItemToUndoCopy ); SAFE_DELETE( g_ItemToUndoCopy );
...@@ -412,11 +413,15 @@ void WinEDA_SchematicFrame::ConvertTextType( DrawTextStruct* Text, ...@@ -412,11 +413,15 @@ void WinEDA_SchematicFrame::ConvertTextType( DrawTextStruct* Text,
SaveCopyInUndoList( newtext, IS_NEW ); SaveCopyInUndoList( newtext, IS_NEW );
} }
else else
{
GetScreen()->SetCurItem( newtext );
newtext->m_Flags = IS_NEW; newtext->m_Flags = IS_NEW;
}
if( (flags & IS_MOVED) != 0 ) if( (flags & IS_MOVED) != 0 )
{ {
GetScreen()->SetCurItem( newtext );
StartMoveTexte( newtext, DC ); StartMoveTexte( newtext, DC );
} }
......
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