X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsupport%2Fplotfile.cpp;h=16336ef2777c9b07dbf163bf26e5835a00dc1cf2;hp=b05705aed89f03356a3ea8740cd20ddb487a0d7a;hb=7ae47cb0ff0a16d1c36797576155263434cc73ff;hpb=2a3686d3bd1f690d318b81766c261da785cf9b57 diff --git a/libctsupport/plotfile.cpp b/libctsupport/plotfile.cpp index b05705a..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.5 2000/12/23 18:12:35 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); @@ -242,9 +241,7 @@ PlotFile::headerWrite (std::iostream& fs) } fs.seekp (0); - fs << "\n"; - fs << "" << m_iNumColumns << "\n"; - fs << "" << m_iNumRecords << "\n"; + fs << "\n"; int iNEzset = m_vecStrEzsetCommands.size(); if (iNEzset > 0) {