From 1a8b1506dfe6144ad69257e4e6404546890ca963 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Wed, 22 Nov 2000 06:43:21 +0000 Subject: [PATCH] r206: *** empty log message *** --- libctsim/imagefile.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libctsim/imagefile.cpp b/libctsim/imagefile.cpp index 667156b..a98f3e1 100644 --- a/libctsim/imagefile.cpp +++ b/libctsim/imagefile.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: imagefile.cpp,v 1.12 2000/09/07 05:01:28 kevin Exp $ +** $Id: imagefile.cpp,v 1.13 2000/11/22 06:43:21 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 @@ -318,7 +318,7 @@ ImageFile::writeImagePGM (const char *outfile, int nxcell, int nycell, double de } for (int ir = 0; ir < nycell; ir++) { for (int ic = 0; ic < nx * nxcell; ic++) - fprintf(fp, "%c ", rowp[ic]); + fprintf(fp, "%c", rowp[ic]); } } @@ -334,8 +334,6 @@ ImageFile::writeImagePGMASCII (const char *outfile, int nxcell, int nycell, doub ImageFileArray v = getArray(); unsigned char rowp [nx * nxcell]; - if (rowp == NULL) - return; if ((fp = fopen (outfile, "wb")) == NULL) return; -- 2.34.1