Commit 2d572e17 authored by Dmitry Kazakov's avatar Dmitry Kazakov Committed by Boudewijn Rempt

Don't zero-out progress bar when one particular stroke is almost ended

parent c56ffdd8
......@@ -158,7 +158,7 @@ qint32 KisStrokesQueue::sizeMetric() const
if(m_d->strokesQueue.isEmpty()) return 0;
// just a rough approximation
return m_d->strokesQueue.head()->numJobs() * m_d->strokesQueue.size();
return qMax(1, m_d->strokesQueue.head()->numJobs()) * m_d->strokesQueue.size();
KUndo2MagicString KisStrokesQueue::currentStrokeName() const
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment