Skip to content

Commit

Permalink
Refs #4167, #4132. Set symbol colour same as line colour.
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Dec 1, 2011
1 parent bfe6e8a commit 1b810e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/MantidPlot/src/Graph.cpp
Expand Up @@ -3312,6 +3312,10 @@ PlotCurve* Graph::insertCurve(PlotCurve* c, int lineWidth, int curveType)
guessUniqueCurveLayout(colorIndex, symbolIndex);
if (lineWidth < 0) lineWidth = widthLine;
c->setPen(QPen(ColorBox::color(colorIndex), lineWidth));
QwtSymbol symbol = c->symbol();
symbol.setPen(c->pen());
symbol.setBrush(QBrush(ColorBox::color(colorIndex)));
c->setSymbol(symbol);

addLegendItem();
connect(c,SIGNAL(removeMe(PlotCurve*)),this,SLOT(removeCurve(PlotCurve*)));
Expand Down

0 comments on commit 1b810e3

Please sign in to comment.