vcl/source/app/idle.cxx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
New commits: commit f645f21eb7c1fbf4addaeff19c1c3dd9c553431c Author: Michael Meeks <michael.me...@collabora.com> Date: Fri Jun 12 17:22:41 2015 +0100 tdf#92036 - work around writer spelling issue Issue exposed by fix for tdf#91727. Change-Id: Ia1eafbd4db28bcfa6c90e0d58735e232c7449f83 Reviewed-on: https://gerrit.libreoffice.org/16252 Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Michael Meeks <michael.me...@collabora.com> diff --git a/vcl/source/app/idle.cxx b/vcl/source/app/idle.cxx index e2fa915..18ab52a 100644 --- a/vcl/source/app/idle.cxx +++ b/vcl/source/app/idle.cxx @@ -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; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits