eeschema: problem when undelete after a change a label type solved (I hope)
This commit is contained in:
parent
1d16eae096
commit
61454f0124
|
@ -14,8 +14,7 @@ email address.
|
|||
- reference not copied in component copy.
|
||||
- incorrect redo when changing the chip name in component edition
|
||||
|
||||
bugs not fixed
|
||||
- undo/redo problems when changing a text type between text, label, global label and hierarchical label
|
||||
bugs not fixed:
|
||||
- incorrect annotation in complex hierarchy with multi parts per package (duplicates created).
|
||||
|
||||
|
||||
|
|
|
@ -396,7 +396,8 @@ void WinEDA_SchematicFrame::ConvertTextType( DrawTextStruct* Text,
|
|||
GetScreen()->SetCurItem( NULL );
|
||||
g_ItemToRepeat = NULL;
|
||||
}
|
||||
GetScreen()->SetCurItem( newtext );
|
||||
|
||||
GetScreen()->SetCurItem( NULL );
|
||||
|
||||
SAFE_DELETE( g_ItemToUndoCopy );
|
||||
|
||||
|
@ -412,11 +413,15 @@ void WinEDA_SchematicFrame::ConvertTextType( DrawTextStruct* Text,
|
|||
SaveCopyInUndoList( newtext, IS_NEW );
|
||||
}
|
||||
else
|
||||
{
|
||||
GetScreen()->SetCurItem( newtext );
|
||||
newtext->m_Flags = IS_NEW;
|
||||
}
|
||||
|
||||
|
||||
if( (flags & IS_MOVED) != 0 )
|
||||
{
|
||||
GetScreen()->SetCurItem( newtext );
|
||||
StartMoveTexte( newtext, DC );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue