Skip to content

Commit

Permalink
Merge topic 'bug_vtkTesting'
Browse files Browse the repository at this point in the history
7899c9c BUG: vtkTesting reports incorrect image sizes

Acked-by: Kitware Robot <[email protected]>
Reviewed-by: Utkarsh Ayachit <[email protected]>
Merge-request: !2998
  • Loading branch information
lorensen authored and kwrobot committed Jul 5, 2017
2 parents ccc9c56 + 7899c9c commit 6c8f7d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Testing/Rendering/vtkTesting.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -725,10 +725,10 @@ int vtkTesting::RegressionTest(vtkAlgorithm* imageSource,
{
os << "Image differencing failed to produce an image because images are "
"different size:" << endl;
os << "Valid image: " << (ext2[1] - ext2[0]) << ", " << (ext2[3] - ext2[2])
<< ", " << (ext2[5] - ext2[4]) << endl;
os << "Test image: " << (ext1[1] - ext1[0]) << ", " << (ext1[3] - ext1[2])
<< ", " << (ext1[5] - ext1[4]) << endl;
os << "Valid image: " << (ext2[1] - ext2[0] + 1) << ", " << (ext2[3] - ext2[2] + 1)
<< ", " << (ext2[5] - ext2[4] + 1) << endl;
os << "Test image: " << (ext1[1] - ext1[0] + 1) << ", " << (ext1[3] - ext1[2] + 1)
<< ", " << (ext1[5] - ext1[4] + 1) << endl;
return FAILED;
}

Expand Down

0 comments on commit 6c8f7d1

Please sign in to comment.