From 78a1fd8e1d48f9cbc71b35b1c27379c6152667cc Mon Sep 17 00:00:00 2001 From: Serge Krot Date: Tue, 7 May 2019 10:10:33 +0200 Subject: tdf#124829 sc: fix crash during progress update Call reschedule() during update of the cells height is not thread safe. Change-Id: Ia938aead79a048f12a53aa55c034e84ce3bf433b Reviewed-on: https://gerrit.libreoffice.org/71892 Reviewed-by: Noel Grandin Tested-by: Jenkins Reviewed-by: Thorsten Behrens --- sc/source/core/data/table1.cxx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'sc/source') diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index 2e7a7ffc33cc..24d0439935ea 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -109,7 +109,6 @@ void GetOptimalHeightsInColumn( sal_uLong nWeightedCount = nProgressStart + rCol.back().GetWeightedCount(nStartRow, nEndRow); const SCCOL maxCol = rCol.size() - 1; // last col done already above - const SCCOL progressUpdateStep = rCol.size() / 10; for (SCCOL nCol=0; nColSetState( nWeightedCount ); - - if ((nCol % progressUpdateStep) == 0) - { - // try to make sure the progress dialog is painted before continuing - Application::Reschedule(true); - } } } } -- cgit