aboutsummaryrefslogtreecommitdiff
path: root/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-08-20 12:00:19 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:36 +0100
commitde17e3afdec93e2347f43f0eea7312509af8ef9c (patch)
tree6f1e02cbb8973820b03ccf904b165011aca6562e /src/stream.c
parent7fa0bc44242e5faaed29ac6fe554831180b7fc92 (diff)
Check that the unit cell makes sense
Diffstat (limited to 'src/stream.c')
-rw-r--r--src/stream.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/stream.c b/src/stream.c
index 316d3bb3..b5ca31bf 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -272,14 +272,19 @@ void write_chunk(FILE *ofh, struct image *i, int f)
if ( (f & STREAM_PIXELS) || (f & STREAM_INTEGRATED) ) {
+ fprintf(ofh, "\n");
+
if ( i->reflections != NULL ) {
- fprintf(ofh, "\n");
fprintf(ofh, REFLECTION_START_MARKER"\n");
write_reflections_to_file(ofh, i->reflections,
i->indexed_cell);
fprintf(ofh, REFLECTION_END_MARKER"\n");
+ } else {
+
+ fprintf(ofh, "No integrated reflections.\n");
+
}
}