summaryrefslogtreecommitdiff
path: root/vcl/source/window/status.cxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-01-14 15:22:55 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-01-14 15:22:55 +0000
commit16d7699621447181ef50eac75bf4b1a64929eeb7 (patch)
treeb622681bd8e2e3b95abcc362079a5ea8c9262ba5 /vcl/source/window/status.cxx
parentb6abdfa524e36f3ce41bd2ff050845f74097cad3 (diff)
INTEGRATION: CWS aquavcl04 (1.25.70); FILE MERGED
2007/11/16 06:24:51 pl 1.25.70.2: RESYNC: (1.25-1.26); FILE MERGED 2007/10/23 11:35:26 hdu 1.25.70.1: #i82882# performance: no need to repaint an unchanged progress bar
Diffstat (limited to 'vcl/source/window/status.cxx')
-rw-r--r--vcl/source/window/status.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index c727ffd15741..bf1c5120863d 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: status.cxx,v $
*
- * $Revision: 1.26 $
+ * $Revision: 1.27 $
*
- * last change: $Author: hr $ $Date: 2007-11-02 12:53:10 $
+ * last change: $Author: ihi $ $Date: 2008-01-14 16:22:55 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -1584,7 +1584,9 @@ void StatusBar::SetProgressValue( USHORT nNewPercent )
DBG_ASSERT( mbProgressMode, "StatusBar::SetProgressValue(): no progrss mode" );
DBG_ASSERTWARNING( nNewPercent <= 100, "StatusBar::SetProgressValue(): nPercent > 100" );
- if ( mbProgressMode && IsReallyVisible() )
+ if ( mbProgressMode
+ && IsReallyVisible()
+ && (!mnPercent || (mnPercent != nNewPercent)) )
{
Update();
SetLineColor();