Index: sources/gui/qml/components/ProgressRect.qml =================================================================== diff -u -r00e025a5d672cae66e592608792c17d98be54d19 -r79bf4dda5c027044ebd0014e7deac42a058a7fcf --- sources/gui/qml/components/ProgressRect.qml (.../ProgressRect.qml) (revision 00e025a5d672cae66e592608792c17d98be54d19) +++ sources/gui/qml/components/ProgressRect.qml (.../ProgressRect.qml) (revision 79bf4dda5c027044ebd0014e7deac42a058a7fcf) @@ -26,11 +26,17 @@ * in regards to the min, max, width, current value of the parent */ RangeRect { id: _root - property int value : 0 - property real margin : Variables.rangeRectMargin + property int value : 0 + property real margin : Variables.rangeRectMargin QtObject { id: _private - property int length: ((parent.width * (value - minimum)) / (maximum - minimum) - (margin * 2)) + property int length: if ( value < minimum ) { + 0 + } else if ( value > maximum ) { + width + } else { + ((parent.width * (value - minimum)) / (maximum - minimum) - (margin * 2)) + } } width : _private.length