Update dangling ends when resizing sheet.

Fixes: lp:1805127
* https://bugs.launchpad.net/kicad/+bug/1805127
This commit is contained in:
Jeff Young 2018-11-30 21:33:42 +00:00
parent ff6a3482ec
commit 61b749f0b2
2 changed files with 3 additions and 4 deletions

View File

@ -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:

View File

@ -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 );