X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctgraphics%2Fezplot.cpp;h=348dd3f170d4fd06892c50d73b4e9bea8422f9cd;hp=45796684b2741dc822a69029e67a3718f062ef57;hb=e36dfad3f0818b4c3457fbe7277faa6f4ca28dfe;hpb=b9a7ca1861da4fe6d5891920ba3b38de1ae11594 diff --git a/libctgraphics/ezplot.cpp b/libctgraphics/ezplot.cpp index 4579668..348dd3f 100644 --- a/libctgraphics/ezplot.cpp +++ b/libctgraphics/ezplot.cpp @@ -6,7 +6,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: ezplot.cpp,v 1.9 2000/07/29 19:50:08 kevin Exp $ +** $Id: ezplot.cpp,v 1.10 2000/08/19 22:59:06 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -253,8 +253,8 @@ EZPlot::plot () } /* find nice endpoints for axes */ - axis_scale (xmin, xmax, o_xmajortick - 1, &xgw_min, &xgw_max, &x_nint); - axis_scale (ymin, ymax, o_ymajortick - 1, &ygw_min, &ygw_max, &y_nint); + if (! axis_scale (xmin, xmax, o_xmajortick - 1, &xgw_min, &xgw_max, &x_nint) || ! axis_scale (ymin, ymax, o_ymajortick - 1, &ygw_min, &ygw_max, &y_nint)) + return; /* check if user set x-axis extents */ if (s_xmin == TRUE) {