Skip to content
GitLab
Menu
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
1bff1c8d
Commit
1bff1c8d
authored
Mar 24, 2011
by
Thomas White
Browse files
render_hkl: Ignore infinities
parent
14440709
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/render_hkl.c
View file @
1bff1c8d
...
...
@@ -161,7 +161,9 @@ static void draw_circles(signed int xh, signed int xk, signed int xl,
if
(
fabs
(
v
)
>
fabs
(
*
max_v
)
)
*
max_v
=
fabs
(
v
);
/* Find max value for colour scale */
if
(
fabs
(
val
)
>
fabs
(
*
max_val
)
)
{
if
(
!
isnan
(
val
)
&&
!
isinf
(
val
)
&&
(
fabs
(
val
)
>
fabs
(
*
max_val
))
)
{
*
max_val
=
fabs
(
val
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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