From 259ce8fd4b28dc48cc63604d362c4af37e8b100b Mon Sep 17 00:00:00 2001 From: dorian Date: Mon, 9 Sep 2019 12:19:24 +0200 Subject: [PATCH] another minor fix --- resources/qml/Widgets/ResultWidget.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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;