Commit a529c112 authored by Lefebvre, Jordan's avatar Lefebvre, Jordan
Browse files

Cleaning warnings in vtkPlotLineErrorBars.

parent 8e25b4fe
......@@ -75,8 +75,8 @@ bool vtkPlotLineErrorBars::Paint(vtkContext2D *painter)
// render from last good point to one before this bad point
if (id - lastGood > 1)
{
int start = lastGood;
int numberOfPoints = id - start;
int start = int(lastGood);
int numberOfPoints = int(id) - start;
if (this->PolyLine)
{
painter->DrawPoly(points + pointSize * start, numberOfPoints);
......@@ -111,8 +111,8 @@ bool vtkPlotLineErrorBars::PaintLegend(vtkContext2D *painter,
const vtkRectf &rect, int)
{
painter->ApplyPen(this->Pen);
painter->DrawLine(rect[0], rect[1] + 0.5 * rect[3], rect[0] + rect[2],
rect[1] + 0.5 * rect[3]);
painter->DrawLine(float(rect[0]), float(rect[1] + 0.5f * rect[3]),
float(rect[0] + rect[2]), float(rect[1] + 0.5f * rect[3]));
this->Superclass::PaintLegend(painter, rect, 0);
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment