Don't call OnPageSettingsChanges on Undo/Redo.

It's incredibly expensive (multiple seconds on a document with
lots of text in an outline font).
This commit is contained in:
Jeff Young 2023-05-27 20:35:05 +01:00
parent 3ab9175553
commit 81d7428fd2
1 changed files with 0 additions and 2 deletions

View File

@ -1212,7 +1212,6 @@ int SCH_EDITOR_CONTROL::Undo( const TOOL_EVENT& aEvent )
m_frame->SyncView();
m_frame->OnModify();
m_frame->OnPageSettingsChange();
return 0;
}
@ -1238,7 +1237,6 @@ int SCH_EDITOR_CONTROL::Redo( const TOOL_EVENT& aEvent )
m_frame->SetSheetNumberAndCount();
m_frame->TestDanglingEnds();
m_frame->OnPageSettingsChange();
m_toolMgr->GetTool<EE_SELECTION_TOOL>()->RebuildSelection();