diff options
Diffstat (limited to 'UnoControls/source/controls/progressbar.cxx')
-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!!! |