1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed graph lines start/end exceeding the graph area

This commit is contained in:
Martin Tůma 2020-11-23 22:17:19 +01:00
parent 8ade76b9f4
commit 2eed9884a5

View File

@ -11,7 +11,7 @@ GraphItem::GraphItem(const Graph &graph, GraphType type, int width,
Q_ASSERT(_graph.isValid()); Q_ASSERT(_graph.isValid());
_units = Metric; _units = Metric;
_pen = QPen(color, width, style); _pen = QPen(color, width, style, Qt::FlatCap);
_sx = 0; _sy = 0; _sx = 0; _sy = 0;
_time = _graph.hasTime(); _time = _graph.hasTime();
setZValue(2.0); setZValue(2.0);