diff options
author | Thomas Lange <tl@openoffice.org> | 2001-08-23 12:55:37 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2001-08-23 12:55:37 +0000 |
commit | 136bd25e0e794aa46c0bc54754af2a2583b11524 (patch) | |
tree | 33ddf31463d72e508c1ec079dfbf20402fd7bcf0 | |
parent | 077ecf8f0458991cd24970a4b88f8606b196bf51 (diff) |
#91404# setRange forces m_nValue to be within the range now
-rw-r--r-- | UnoControls/source/controls/progressbar.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/UnoControls/source/controls/progressbar.cxx b/UnoControls/source/controls/progressbar.cxx index c8e08eecd9df..432400ba6635 100644 --- a/UnoControls/source/controls/progressbar.cxx +++ b/UnoControls/source/controls/progressbar.cxx @@ -2,9 +2,9 @@ * * $RCSfile: progressbar.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: as $ $Date: 2001-08-10 12:04:10 $ + * last change: $Author: tl $ $Date: 2001-08-23 13:55:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -338,6 +338,10 @@ void SAL_CALL ProgressBar::setRange ( sal_Int32 nMin, sal_Int32 nMax ) throw( Ru m_nMaxRange = nMin ; } + // assure that m_nValue is within the range + if (!(m_nMinRange < m_nValue && m_nValue < m_nMaxRange)) + m_nValue = m_nMinRange; + impl_recalcRange () ; // Do not repaint the control at this place!!! |