Mercurial > hg > octave-nkf
diff libinterp/corefcn/gl-render.cc @ 17732:dcc88366f94b
Print warning and abort FLTK plot if data values < -maxfloat (bug #40246)
* libinterp/corefcn/gl-render.cc: Check that x,y,z min values are not
smaller than -maxfloat.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 22 Oct 2013 16:20:33 -0700 |
parents | 38e9dee9c627 |
children | d63878346099 |
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc +++ b/libinterp/corefcn/gl-render.cc @@ -1401,7 +1401,8 @@ double z_min = props.get_z_min (); double z_max = props.get_z_max (); - if (x_max > floatmax || y_max > floatmax || z_max > floatmax) + if (x_max > floatmax || y_max > floatmax || z_max > floatmax + || x_min < -floatmax || y_min < -floatmax || z_min < -floatmax) { warning ("gl-render: data values greater than float capacity. (1) Scale data, or (2) Use gnuplot"); return;