Skip to content

Commit

Permalink
Fix user chart axis color
Browse files Browse the repository at this point in the history
.. when using named colors the axis was always black because
   the color was not being translated via the RGBColor macro.
  • Loading branch information
liversedge committed Aug 3, 2021
1 parent 1552732 commit 72f91c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Charts/GenericPlot.cpp
Expand Up @@ -1119,8 +1119,8 @@ GenericPlot::configureAxis(QString name, bool visible, int align, double min, do
}

// color
if (labelcolor != "") axis->labelcolor=QColor(labelcolor);
if (color != "") axis->axiscolor=QColor(color);
if (labelcolor != "") axis->labelcolor=RGBColor(QColor(labelcolor));
if (color != "") axis->axiscolor=RGBColor(QColor(color));

// log ..
axis->log = log;
Expand Down

0 comments on commit 72f91c3

Please sign in to comment.