summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-01-13 14:41:53 +0000
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-01-25 17:13:37 +0000
commita4dfb5a24ea16c6071dc40aa7321a5118745cb4b (patch)
tree8be8d56bd75586513111344ac14d0e7dc6cce6d4 /vcl
parentf3dbf9cbba6e1d5917de9793a95eced4182777b8 (diff)
tdf#95573 - stop (crazy) busy loop from blocking rendering.
Attempt to blind fix extensions problem on OS/X. Some quite amazing code there. To avoid each busy idle from invalidating, avoid progress bar invalidation for the same %age being set. Change-Id: If96f8615c0ea712681e008972b3abe1c070a3227 Reviewed-on: https://gerrit.libreoffice.org/21436 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/prgsbar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/prgsbar.cxx b/vcl/source/control/prgsbar.cxx
index c13c14ed0be5..9f8f303f854c 100644
--- a/vcl/source/control/prgsbar.cxx
+++ b/vcl/source/control/prgsbar.cxx
@@ -177,7 +177,7 @@ void ProgressBar::SetValue( sal_uInt16 nNewPercent )
Update();
}
}
- else
+ else if ( mnPercent != nNewPercent )
{
mnPreviousPercent = mnPercent;
mnPercent = nNewPercent;