Index: sources/gui/qml/components/ProgressRect.qml =================================================================== diff -u -r00e025a5d672cae66e592608792c17d98be54d19 -rcd7de5f6d239a11615ba8c6c03339a10996486ca --- sources/gui/qml/components/ProgressRect.qml (.../ProgressRect.qml) (revision 00e025a5d672cae66e592608792c17d98be54d19) +++ sources/gui/qml/components/ProgressRect.qml (.../ProgressRect.qml) (revision cd7de5f6d239a11615ba8c6c03339a10996486ca) @@ -14,7 +14,6 @@ // Qt import QtQuick 2.12 -import QtQuick.Controls 2.12 // Project // Qml imports @@ -26,11 +25,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