diff --git a/resources/qml/Widgets/ResultWidget.qml b/resources/qml/Widgets/ResultWidget.qml index 8d7e7dc..c412350 100644 --- a/resources/qml/Widgets/ResultWidget.qml +++ b/resources/qml/Widgets/ResultWidget.qml @@ -207,6 +207,7 @@ DataListView { } Rectangle { + id: partDelBackgroundRect anchors.fill: parent width: partDel.width @@ -353,6 +354,9 @@ DataListView { var context = getContext("2d"); + // clear all remainings from other routes + context.clearRect(0, 0, width, height); + context.beginPath(); context.moveTo(0 + offsetX + radius, 0 + offsetY); @@ -378,8 +382,12 @@ DataListView { if(resultData[0] !== -1) { // if there is a result available -> draw background context.fillStyle = "#b7b7b7"; - context.fill(); } + else { + context.fillStyle = "transparent"; + } + + context.fill(); // outline context.lineWidth = 1;