Commit d9ab6e3f authored by Dave DeMarle's avatar Dave DeMarle
Browse files

Fix -Wnarrowing compilation warnings.

Change-Id: I0ed7c091a7fe50c5afde9e5c70b5aa71144917fd
Specifically:
warning: narrowing conversion of 'cols' from 'long int' to 'double' inside { } is ill-formed in C++11
parent 360cd19e
......@@ -373,9 +373,9 @@ bool vtkMatplotlibMathTextUtilities::GetBoundingBox(
double angleDeg = tprop->GetOrientation();
// Corners of original image
double corners[4][2] = { {0, 0},
{cols, 0},
{0, rows},
{cols, rows} };
{static_cast<double>(cols), 0},
{0, static_cast<double>(rows)},
{static_cast<double>(cols), static_cast<double>(rows)} };
double bboxd[4];
this->RotateCorners(angleDeg, corners, bboxd);
......
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