Skip to content

Commit

Permalink
Refs #9058. Name variable better.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbekasov committed Mar 3, 2014
1 parent 3519ca9 commit e33309e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Code/Mantid/MantidPlot/src/Graph.cpp
Expand Up @@ -3217,7 +3217,7 @@ bool Graph::addCurves(Table* w, const QStringList& names, int style, double lWid
if (xColName.isEmpty() || yColName.isEmpty())
return false;

PlotCurve* c(NULL);
PlotCurve* newCurve(NULL);

// --- Drawing error columns -----------------------------
if (colType == Table::xErr || colType == Table::yErr){
Expand All @@ -3227,7 +3227,7 @@ bool Graph::addCurves(Table* w, const QStringList& names, int style, double lWid
else
dir = QwtErrorPlotCurve::Vertical;

c = addErrorBars(xColName, yColName, w, colName, dir);
newCurve = addErrorBars(xColName, yColName, w, colName, dir);
// --- Drawing label columns -----------------------------
} else if (colType == Table::Label){
DataCurve* mc = masterCurve(xColName, yColName);
Expand All @@ -3239,17 +3239,17 @@ bool Graph::addCurves(Table* w, const QStringList& names, int style, double lWid
// --- Drawing Y columns -----------------------------
} else if (colType == Table::Y)
{
c = insertCurve(w, xColName, yColName, style, startRow, endRow);
newCurve = insertCurve(w, xColName, yColName, style, startRow, endRow);
}

// Set a layout for the new curve, if we've added one
if (c)
if (newCurve)
{
CurveLayout cl = initCurveLayout(style, drawableNames.count() - noOfErrorCols);
cl.sSize = sSize;
cl.lWidth = static_cast<float>(lWidth);

updateCurveLayout(c, &cl);
updateCurveLayout(newCurve, &cl);
}
}
}
Expand Down

0 comments on commit e33309e

Please sign in to comment.