diff options
Diffstat (limited to 'UnoControls')
-rw-r--r-- | UnoControls/source/controls/progressbar.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UnoControls/source/controls/progressbar.cxx b/UnoControls/source/controls/progressbar.cxx index 37ac9e379195..d8c9b889f2b5 100644 --- a/UnoControls/source/controls/progressbar.cxx +++ b/UnoControls/source/controls/progressbar.cxx @@ -221,7 +221,7 @@ void SAL_CALL ProgressBar::setRange ( sal_Int32 nMin, sal_Int32 nMax ) } // assure that m_nValue is within the range - if (!(m_nMinRange < m_nValue && m_nValue < m_nMaxRange)) + if (m_nMinRange >= m_nValue || m_nValue >= m_nMaxRange) m_nValue = m_nMinRange; impl_recalcRange (); |