sc/source/ui/view/output2.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 5da82a87517819c4d3c3a87c09934ecdc51fc855
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Oct 13 08:18:46 2023 +0200
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Oct 13 13:30:22 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/+/157882
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 8543f2f517c7..3887f19b3d5c 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -2168,6 +2168,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();

Reply via email to