Kaydet (Commit) a0faaf32 authored tarafından Michael Meeks's avatar Michael Meeks

tdf#92036 - work around writer spelling issue

Issue exposed by fix for tdf#91727.

Change-Id: Ia1eafbd4db28bcfa6c90e0d58735e232c7449f83
Reviewed-on: https://gerrit.libreoffice.org/16252Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
Tested-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst 9ee1e267
......@@ -57,9 +57,22 @@ bool Idle::ReadyForSchedule( bool bTimer )
return true; // !bTimer
}
sal_uInt64 Idle::UpdateMinPeriod( sal_uInt64 /* nMinPeriod */, sal_uInt64 /* nTime */ )
sal_uInt64 Idle::UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 /* nTime */ )
{
return 1;
switch (mePriority) {
case SchedulerPriority::HIGHEST:
case SchedulerPriority::HIGH:
case SchedulerPriority::RESIZE:
case SchedulerPriority::REPAINT:
nMinPeriod = 1; // don't wait.
break;
default:
// FIXME: tdf#92036 workaround, I should be 1 too - wait 5ms
if (nMinPeriod > 5)
nMinPeriod = 5;
break;
}
return nMinPeriod;
}
......
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