Kaydet (Commit) 9c470318 authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski Kaydeden (comit) Andras Timar

tdf#94485 Lower Calc background spellchecker prio

The Calc spell checker idle handler is currently running in the
REPAINT / MEDIUM priority class - much too high.

This races with the Calc GUI repaint for large documents, like
the one attached to tdf#94485.

So move it to the LOWER priority queue, to fix the lagging GUI.

Change-Id: I6e4b05dd1a977182ec13f7e3a05f0722f502f226
(cherry picked from commit 0db68ef9)
Reviewed-on: https://gerrit.libreoffice.org/19556Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
(cherry picked from commit be4e0ce8)
üst c0f05d8a
...@@ -174,7 +174,7 @@ ScModule::ScModule( SfxObjectFactory* pFact ) : ...@@ -174,7 +174,7 @@ ScModule::ScModule( SfxObjectFactory* pFact ) :
ERRCODE_AREA_APP2-1, ERRCODE_AREA_APP2-1,
GetResMgr() ); GetResMgr() );
aSpellIdle.SetPriority(SchedulerPriority::REPAINT); aSpellIdle.SetPriority(SchedulerPriority::LOWER);
aSpellIdle.SetIdleHdl( LINK( this, ScModule, SpellTimerHdl ) ); aSpellIdle.SetIdleHdl( LINK( this, ScModule, SpellTimerHdl ) );
aIdleTimer.SetTimeout(SC_IDLE_MIN); aIdleTimer.SetTimeout(SC_IDLE_MIN);
aIdleTimer.SetTimeoutHdl( LINK( this, ScModule, IdleHandler ) ); aIdleTimer.SetTimeoutHdl( LINK( this, ScModule, IdleHandler ) );
......
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