summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2019-05-07 10:10:33 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-05-13 20:23:09 +0200
commit5f410088767e05ef5b5a7a7d5bebdce899cfe86a (patch)
treeb935e9290463f8e1c218ef842f879da7f83a4797 /sc
parentabc0419d28f0d46263e0f203fd7b53b4e4106294 (diff)
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 <noel.grandin@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-on: https://gerrit.libreoffice.org/72236 Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table1.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 3062de5a3dca..240a89a02a75 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -114,7 +114,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; nCol<maxCol; nCol++)
{
rCol[nCol].GetOptimalHeight(rCxt, nStartRow, nEndRow, nMinHeight, nMinStart);
@@ -123,12 +122,6 @@ void GetOptimalHeightsInColumn(
{
nWeightedCount += rCol[nCol].GetWeightedCount(nStartRow, nEndRow);
pProgress->SetState( nWeightedCount );
-
- if ((nCol % progressUpdateStep) == 0)
- {
- // try to make sure the progress dialog is painted before continuing
- Application::Reschedule(true);
- }
}
}
}