X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fprojections.cpp;h=f5f9c6af9761f4fb7816420584a1a5d9a32e55d2;hp=b5db204b35888db4299006b8d3c1b7e82661a593;hb=065c60e43bbd0649f42fde5351dc073f59b3aa28;hpb=2a5c4c17f789c2ac35cbdbd90735a36316acbdd7 diff --git a/libctsim/projections.cpp b/libctsim/projections.cpp index b5db204..f5f9c6a 100644 --- a/libctsim/projections.cpp +++ b/libctsim/projections.cpp @@ -8,7 +8,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: projections.cpp,v 1.44 2001/01/13 22:30:01 kevin Exp $ +** $Id: projections.cpp,v 1.45 2001/01/16 20:55:29 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 @@ -637,6 +637,8 @@ Projections::printProjectionData (int startView, int endView) if (m_projData != NULL) { if (startView < 0) startView = 0; + if (endView < 0) + endView = m_nView - 1; if (startView > m_nView - 1) startView = m_nView - 1; if (endView > m_nView - 1)