X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fctndicom.cpp;h=5ad53b55dd5511bc202c8e3624a5dd1be0d2518f;hp=72d32181ad0209001db6f7c843a06b4e70501850;hb=7cb74b55a21d0ab57a584ce3c910c280beb7a329;hpb=505de7e90b7c4a6ab3e81ee3192a7d9837701806 diff --git a/libctsim/ctndicom.cpp b/libctsim/ctndicom.cpp index 72d3218..5ad53b5 100644 --- a/libctsim/ctndicom.cpp +++ b/libctsim/ctndicom.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: ctndicom.cpp,v 1.3 2001/03/02 02:08:14 kevin Exp $ +** $Id: ctndicom.cpp,v 1.4 2001/03/02 05:10:22 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 @@ -198,7 +198,13 @@ DicomImporter::loadProjections() } m_iContents = DICOM_CONTENTS_PROJECTIONS; m_pProjections = new Projections; - m_pProjections->initFromSomatomAR_STAR (iNViews, iNDets, pRawProjections, lRtnLength); + if (! m_pProjections->initFromSomatomAR_STAR (iNViews, iNDets, pRawProjections, lRtnLength)) { + m_bFail = true; + m_strFailMessage = "Error converting raw projection data"; + delete m_pProjections; + m_pProjections = NULL; + } + delete pRawProjections; }