diff options
author | Thomas White <taw@physics.org> | 2012-03-26 12:18:53 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-03-27 16:48:17 +0200 |
commit | 9c8b5681a83c126531dfee417d1d13535a67ff25 (patch) | |
tree | 274ead0f21762ef3de8ee6cbc753f749b19bbe88 | |
parent | dbe80891f0ccc85ca68b94544fa19e6e451124b2 (diff) |
Fix find_panel() (again)
This fixes a not-so-subtle bug introduced by 289c8a77c252e080d4d4086b848ea8fdcb604147.
-rw-r--r-- | libcrystfel/src/detector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 29a24234..94af656f 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -426,9 +426,9 @@ struct panel *find_panel(struct detector *det, double fs, double ss) for ( p=0; p<det->n_panels; p++ ) { if ( (fs >= det->panels[p].min_fs) - && (fs <= det->panels[p].max_fs+1) + && (fs < det->panels[p].max_fs+1) && (ss >= det->panels[p].min_ss) - && (ss <= det->panels[p].max_ss+1) ) { + && (ss < det->panels[p].max_ss+1) ) { return &det->panels[p]; } } |