Update dangling ends when resizing sheet.
Fixes: lp:1805127 * https://bugs.launchpad.net/kicad/+bug/1805127
This commit is contained in:
parent
ff6a3482ec
commit
61b749f0b2
|
@ -235,10 +235,6 @@ void SCH_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event )
|
|||
|
||||
case ID_POPUP_SCH_RESIZE_SHEET:
|
||||
ReSizeSheet( (SCH_SHEET*) item, nullptr );
|
||||
|
||||
TestDanglingEnds();
|
||||
m_canvas->Refresh();
|
||||
|
||||
break;
|
||||
|
||||
case ID_POPUP_IMPORT_HLABEL_TO_SHEETPIN:
|
||||
|
|
|
@ -448,6 +448,9 @@ void SCH_EDIT_FRAME::ReSizeSheet( SCH_SHEET* aSheet, wxDC* aDC )
|
|||
SetUndoItem( aSheet );
|
||||
aSheet->SetFlags( IS_RESIZED );
|
||||
|
||||
std::vector<DANGLING_END_ITEM> emptySet;
|
||||
aSheet->UpdateDanglingState( emptySet );
|
||||
|
||||
m_canvas->SetMouseCapture( resizeSheetWithMouseCursor, ExitSheet );
|
||||
m_canvas->CallMouseCapture( aDC, wxDefaultPosition, true );
|
||||
|
||||
|
|
Loading…
Reference in New Issue