X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsupport%2Fplotfile.cpp;h=16336ef2777c9b07dbf163bf26e5835a00dc1cf2;hp=706fce1d352bcd367e22e257965c7ea4c3ebbb2b;hb=7ae47cb0ff0a16d1c36797576155263434cc73ff;hpb=ee405282853525f1fa25c4f4321ba85652353564 diff --git a/libctsupport/plotfile.cpp b/libctsupport/plotfile.cpp index 706fce1..16336ef 100644 --- a/libctsupport/plotfile.cpp +++ b/libctsupport/plotfile.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: plotfile.cpp,v 1.6 2000/12/27 03:16:02 kevin Exp $ +** $Id: plotfile.cpp,v 1.7 2000/12/29 20:09:46 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -148,8 +148,7 @@ PlotFile::statistics (int iStartingCol, double& min, double& max, double& mean, sys_error (ERR_WARNING, "iStartingCol >= iNumColumns"); return false; } - - int iOffset = iStartingCol * m_iNumRecords; + int iNPoints = (m_iNumColumns - iStartingCol) * m_iNumRecords; std::vector vec; vec.resize (iNPoints);