lokit: ensure progress value sequential
When it is saving a impress file, the status indicator sometimes receives lower values, that it is reflected to client side a flash to the progress bar. Change-Id: Ib3e8499357984843650c8d897c7b1d6baeb65ff6 Reviewed-on: https://gerrit.libreoffice.org/24326 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
This commit is contained in:
committed by
jan iversen
parent
2060543586
commit
ffa4b78819
@@ -103,7 +103,7 @@ void SAL_CALL StatusIndicator::setValue(sal_Int32 nValue)
|
|||||||
if (comphelper::LibreOfficeKit::isActive())
|
if (comphelper::LibreOfficeKit::isActive())
|
||||||
{
|
{
|
||||||
int nPercent = (100*nValue)/m_nRange;
|
int nPercent = (100*nValue)/m_nRange;
|
||||||
if (nPercent != m_nLastCallbackPercent)
|
if (nPercent >= m_nLastCallbackPercent)
|
||||||
{
|
{
|
||||||
comphelper::LibreOfficeKit::statusIndicatorSetValue(nPercent);
|
comphelper::LibreOfficeKit::statusIndicatorSetValue(nPercent);
|
||||||
m_nLastCallbackPercent = nPercent;
|
m_nLastCallbackPercent = nPercent;
|
||||||
|
Reference in New Issue
Block a user