Commit 1bff1c8d authored by Thomas White's avatar Thomas White
Browse files

render_hkl: Ignore infinities

parent 14440709
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment