Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
9c8b5681
Commit
9c8b5681
authored
Mar 26, 2012
by
Thomas White
Browse files
Fix find_panel() (again)
This fixes a not-so-subtle bug introduced by
289c8a77
.
parent
dbe80891
Changes
1
Hide whitespace changes
Inline
Side-by-side
libcrystfel/src/detector.c
View file @
9c8b5681
...
...
@@ -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
];
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment