# HG changeset patch # User Rik # Date 1382484033 25200 # Node ID dcc88366f94bae2297bbf2be947bb3747a877beb # Parent f79bf671a493160c8ceb7772904f1b0f9bfb64e8 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. diff -r f79bf671a493 -r dcc88366f94b libinterp/corefcn/gl-render.cc --- a/libinterp/corefcn/gl-render.cc Tue Oct 22 18:43:36 2013 -0400 +++ b/libinterp/corefcn/gl-render.cc Tue Oct 22 16:20:33 2013 -0700 @@ -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;