summaryrefslogtreecommitdiffstats
path: root/flatspec.c
diff options
context:
space:
mode:
authorHenning Makholm <henning@makholm.net>2009-07-01 18:00:00 (EDT)
committer Julien Jorge <julien.jorge@stuff-o-matic.com>2013-01-10 16:10:03 (EST)
commit70a9b1ca8750a43e8092807d174a8c49407aa213 (patch)
tree78e1cbff8e9750d918c4bc8782086fc37306492a /flatspec.c
parentc60d2efdeaa61c5e8a930f9635548f5abaf201b3 (diff)
downloadxcftools-70a9b1ca8750a43e8092807d174a8c49407aa213.zip
xcftools-70a9b1ca8750a43e8092807d174a8c49407aa213.tar.gz
xcftools-70a9b1ca8750a43e8092807d174a8c49407aa213.tar.bz2
Import of release 1.0.5
Diffstat (limited to 'flatspec.c')
-rw-r--r--flatspec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/flatspec.c b/flatspec.c
index 75827ff..a67ce59 100644
--- a/flatspec.c
+++ b/flatspec.c
@@ -184,13 +184,13 @@ complete_flatspec(struct FlattenSpec *spec, guesser guess_callback)
spec->dim = spec->layers[i].dim ;
first = 0 ;
} else {
- if( spec->dim.c.l < spec->layers[i].dim.c.l )
+ if( spec->dim.c.l > spec->layers[i].dim.c.l )
spec->dim.c.l = spec->layers[i].dim.c.l ;
- if( spec->dim.c.r > spec->layers[i].dim.c.r )
+ if( spec->dim.c.r < spec->layers[i].dim.c.r )
spec->dim.c.r = spec->layers[i].dim.c.r ;
- if( spec->dim.c.t < spec->layers[i].dim.c.t )
+ if( spec->dim.c.t > spec->layers[i].dim.c.t )
spec->dim.c.t = spec->layers[i].dim.c.t ;
- if( spec->dim.c.b > spec->layers[i].dim.c.b )
+ if( spec->dim.c.b < spec->layers[i].dim.c.b )
spec->dim.c.b = spec->layers[i].dim.c.b ;
}
}