From 2eed9884a51e0cc6b3d286f183715923d48ca3fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 23 Nov 2020 22:17:19 +0100 Subject: [PATCH] Fixed graph lines start/end exceeding the graph area --- src/GUI/graphitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/graphitem.cpp b/src/GUI/graphitem.cpp index a9a198a5..b023de93 100644 --- a/src/GUI/graphitem.cpp +++ b/src/GUI/graphitem.cpp @@ -11,7 +11,7 @@ GraphItem::GraphItem(const Graph &graph, GraphType type, int width, Q_ASSERT(_graph.isValid()); _units = Metric; - _pen = QPen(color, width, style); + _pen = QPen(color, width, style, Qt::FlatCap); _sx = 0; _sy = 0; _time = _graph.hasTime(); setZValue(2.0);