sc/source/ui/view/output2.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit c4381b39b40929cd6a30c15161faf79a346f1ed9 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Oct 13 08:18:46 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Oct 13 11:20:57 2023 +0200
cool#6893 disable undo for editengine when rendering cell text We don't need undo functionality when performing pure cell text rendering, shaves some CPU time off Change-Id: Icfc688122af7e77c874dd984555b2b0951e9e134 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157900 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index 00922a0f8e59..20956ccad844 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -2178,6 +2178,7 @@ std::unique_ptr<ScFieldEditEngine> ScOutputData::CreateOutputEditEngine() { std::unique_ptr<ScFieldEditEngine> pEngine(new ScFieldEditEngine(mpDoc, mpDoc->GetEnginePool())); pEngine->SetUpdateLayout( false ); + pEngine->EnableUndo( false ); // dont need undo for painting purposes // a RefDevice always has to be set, otherwise EditEngine would create a VirtualDevice pEngine->SetRefDevice( pFmtDevice ); EEControlBits nCtrl = pEngine->GetControlWord();