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:
parent
3ab9175553
commit
81d7428fd2
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue