summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-05-30 09:29:22 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-05-30 11:47:48 +0000
commit2ece89b68513d89700e20962c531579d20676896 (patch)
treec889cc0272ceed1b431589f3679e159df90a9d70 /include
parent61e30ea478b649cebb02405c2e55c181c3fc8f91 (diff)
tdf#100134 xmloff: only update the progressbar twice for every percent
This restores the state before commit e1b78d36008d1fd188ca8dc154ad069d3476520c (#95181#; call the setValue method of the XStatusIndicator as often as possible to enable reschedule, 2001-11-26), which doesn't seem to be necessary anymore, perhaps due to the current scheduler that has priorities. Rather than a plain revert, still allow the progressbar to jump back, as that seems to be used relatively frequently. So just filter out the calls that would increment the value, but only with a small difference, compared to the shown value. Reviewed-on: https://gerrit.libreoffice.org/25654 Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 20ad9893d5d3be13d8aa17764e483afaa083b5c0) Change-Id: I7136b20f1c64e267b0b4a35bbe2564e5163d9468 Reviewed-on: https://gerrit.libreoffice.org/25664 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/xmloff/ProgressBarHelper.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xmloff/ProgressBarHelper.hxx b/include/xmloff/ProgressBarHelper.hxx
index 521ee4cb2406..748fb4e95c87 100644
--- a/include/xmloff/ProgressBarHelper.hxx
+++ b/include/xmloff/ProgressBarHelper.hxx
@@ -36,6 +36,7 @@ class XMLOFF_DLLPUBLIC ProgressBarHelper
sal_Int32 nRange;
sal_Int32 nReference;
sal_Int32 nValue;
+ double fOldPercent;
bool bStrict;
// #96469#; if the value goes over the Range the progressbar starts again
bool bRepeat;