Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Toolbox/SlicesSorter.cpp @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | 4fb8fdf03314 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/SlicesSorter.cpp Mon Sep 21 14:50:26 2020 +0200 +++ b/OrthancStone/Sources/Toolbox/SlicesSorter.cpp Mon Sep 21 17:46:39 2020 +0200 @@ -315,8 +315,8 @@ for (size_t i = 1; i < GetSlicesCount(); i++) { - OrthancStone::Vector p = reference.GetOrigin() + spacing * static_cast<double>(i) * reference.GetNormal(); - double d = boost::numeric::ublas::norm_2(p - GetSliceGeometry(i).GetOrigin()); + OrthancStone::Vector q = reference.GetOrigin() + spacing * static_cast<double>(i) * reference.GetNormal(); + double d = boost::numeric::ublas::norm_2(q - GetSliceGeometry(i).GetOrigin()); if (!OrthancStone::LinearAlgebra::IsNear(d, 0, 0.001 /* tolerance expressed in mm */)) {