mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 00:21:25 +00:00
Pcbnew, DIALOG_SHAPE_PROPERTIES: fix an issue noticeable with POLY shapes.
After editing a polygon, the pointers m_parent and m_group where cleared. They are now restored (like for other shapes). Fixes https://gitlab.com/kicad/code/kicad/-/issues/20564
This commit is contained in:
parent
ac616b8c19
commit
848a6b6930
@ -1135,6 +1135,10 @@ bool DIALOG_SHAPE_PROPERTIES::TransferDataFromWindow()
|
||||
if( !pushCommit )
|
||||
m_item->SetFlags( IN_EDIT );
|
||||
|
||||
// Ensure parent and parent group item are restored. m_workingCopy had previously
|
||||
// these parents cleared and not restored for some PCB_SHAPE types (i.e. POLY)
|
||||
m_workingCopy.SetParentGroup( m_item->GetParentGroup() );
|
||||
m_workingCopy.SetParent( m_item->GetParent() );
|
||||
*m_item = m_workingCopy;
|
||||
|
||||
bool wasLocked = m_item->IsLocked();
|
||||
|
Loading…
Reference in New Issue
Block a user