Index: sources/gui/qml/components/ProgressRect.qml =================================================================== diff -u -rcd7de5f6d239a11615ba8c6c03339a10996486ca -r6616f7b9b88efffa42ab605833d296afb76d3cb1 --- sources/gui/qml/components/ProgressRect.qml (.../ProgressRect.qml) (revision cd7de5f6d239a11615ba8c6c03339a10996486ca) +++ sources/gui/qml/components/ProgressRect.qml (.../ProgressRect.qml) (revision 6616f7b9b88efffa42ab605833d296afb76d3cb1) @@ -25,7 +25,7 @@ * in regards to the min, max, width, current value of the parent */ RangeRect { id: _root - property int value : 0 + property real value : 0 property real margin : Variables.rangeRectMargin QtObject { id: _private @@ -34,7 +34,11 @@ } else if ( value > maximum ) { width } else { - ((parent.width * (value - minimum)) / (maximum - minimum) - (margin * 2)) + if (maximum > minimum) { + ((parent.width * (value - minimum)) / (maximum - minimum) - (margin * 2)) + } else { + 0 + } } }