** This is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: threadproj.cpp,v 1.4 2001/02/25 19:24:01 kevin Exp $
+** $Id: threadproj.cpp,v 1.5 2001/02/27 03:59:30 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
for (int iw = 0; iw < getNumWorkers(); iw++) {
for (int iView = 0; iView < m_vecpChildProjections[iw]->nView(); iView++) {
DetectorArray& childDetArray = m_vecpChildProjections[iw]->getDetectorArray(iView);
- DetectorArray& globalDetArray = pProjections->getDetectorArray(iGlobalView);
+ DetectorArray& globalDetArray = pProjections->getDetectorArray(iGlobalView++);
globalDetArray.setViewAngle (childDetArray.viewAngle());
DetectorValue* childDetval = childDetArray.detValues();
DetectorValue* globalDetval = globalDetArray.detValues();
memcpy (globalDetval, childDetval, detArraySize);
- iGlobalView++;
}
}