Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit aed9cfb8 authored by Boudewijn Rempt's avatar Boudewijn Rempt

better fix for KoUpdater

parent 1d7351bf
......@@ -84,11 +84,8 @@ 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 );
if (range = 0) return;
setProgress( ((100 * value ) / range) + 1 );
}
void KoUpdater::setRange( int minimum, int maximum )
......
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