projects
/
ctsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0300d19
)
r206: *** empty log message ***
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Wed, 22 Nov 2000 06:43:21 +0000
(06:43 +0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Wed, 22 Nov 2000 06:43:21 +0000
(06:43 +0000)
libctsim/imagefile.cpp
patch
|
blob
|
history
diff --git
a/libctsim/imagefile.cpp
b/libctsim/imagefile.cpp
index 667156b24cd224de9e45d052aca0b608a0fc6ab2..a98f3e16fdf44b73ee025127ba2d2f6606d0cb2c 100644
(file)
--- 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
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: imagefile.cpp,v 1.1
2 2000/09/07 05:01:28
kevin Exp $
+** $Id: imagefile.cpp,v 1.1
3 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
**
** 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++)
}
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];
ImageFileArray v = getArray();
unsigned char rowp [nx * nxcell];
- if (rowp == NULL)
- return;
if ((fp = fopen (outfile, "wb")) == NULL)
return;
if ((fp = fopen (outfile, "wb")) == NULL)
return;