Commit 9b92c289 authored by Boudewijn Rempt's avatar Boudewijn Rempt

guard against a division by zero error

parent 5f3755f2
......@@ -84,7 +84,10 @@ void KoUpdater::setValue( int value )
if ( value < min ) value = min;
if ( value > max ) value = max;
// Go from range to percent
if (range < 0) {
range = 0;
}
setProgress( (100 * value ) / range + 1 );
}
......
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