X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Farray2dfile.cpp;h=424ec230fe8d1717550ee6a9b1e402abe0bf1e3d;hp=ed04a7c04f3ee149dc6a7266a885eaa4b96be7c7;hb=08a5cd04c3994d5ea24713b9b000791bd2e406fe;hpb=3fba6928127cd65870bdcd96c8114ad5894247ae diff --git a/libctsim/array2dfile.cpp b/libctsim/array2dfile.cpp index ed04a7c..424ec23 100644 --- a/libctsim/array2dfile.cpp +++ b/libctsim/array2dfile.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: array2dfile.cpp,v 1.6 2000/07/13 07:03:21 kevin Exp $ +** $Id: array2dfile.cpp,v 1.8 2000/07/29 19:50:08 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 @@ -170,7 +170,7 @@ Array2dFile::~Array2dFile (void) { freeArray (); for (labelIterator l = m_labels.begin(); l != m_labels.end(); l++) - delete *l; + delete *l; } Array2dFile::Array2dFile (void) @@ -199,12 +199,9 @@ Array2dFile::init (void) void Array2dFile::setArraySize (int x, int y, int pixelSize, int pixelFormat) { - m_nx = x; - m_ny = y; m_pixelSize = pixelSize; - m_arraySize = m_nx * m_ny * m_pixelSize; m_pixelFormat = pixelFormat; - allocArray (); + setArraySize (x, y); } void