mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-05 23:22:51 +02:00
Fixed broken palette handling
This commit is contained in:
@ -131,7 +131,6 @@ void GraphView::loadData(const QVector<QPointF> &data)
|
||||
{
|
||||
QPainterPath path;
|
||||
QGraphicsPathItem *pi;
|
||||
QColor color = _palette.color();
|
||||
|
||||
|
||||
if (data.size() < 2)
|
||||
@ -145,7 +144,7 @@ void GraphView::loadData(const QVector<QPointF> &data)
|
||||
}
|
||||
|
||||
pi = new QGraphicsPathItem(path);
|
||||
QBrush brush(color, Qt::SolidPattern);
|
||||
QBrush brush(_palette.color(), Qt::SolidPattern);
|
||||
QPen pen(brush, 0);
|
||||
pi->setPen(pen);
|
||||
_scene->addItem(pi);
|
||||
|
Reference in New Issue
Block a user