On Wed, 2012-11-28 at 23:25 +0100, pkoroau pkoroau wrote:
Hello, I'm sending this patch to fix Writer's aIdleTimer.
This looks promising. But a couple of things.
1. In e.g. SetNeedGrammarCheck and SetFieldsDirty shouldn't
StartBackgroundJobs only be called for the "true" case and not the
"false" case ?
2. the...
if ( !GetUpdtFlds().IsInUpdateFlds() &&
!IsExpFldsLocked() )
{
pTimer->Start();
return 0;
}
condition to me looks that it will restart the timer if we not currently
updating-fields but the updating-fields flag is set after that condition
and the updating fields works done there. So it suggests that fields
will never be actually updated and the timer run again and again.
Maybe that should be...
if (GetUpdtFlds().IsInUpdateFlds())
{
//Already updating fields, try again later
pTimer->Start();
return 0;
}
?
C.
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.