Kaydet (Commit) 78a1fd8e authored tarafından Serge Krot's avatar Serge Krot Kaydeden (comit) Thorsten Behrens

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/71892Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 37a19f78
......@@ -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; nCol<maxCol; nCol++)
{
rCol[nCol].GetOptimalHeight(rCxt, nStartRow, nEndRow, nMinHeight, nMinStart);
......@@ -118,12 +117,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);
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment