Changed all the licence notices in all the files.
[pspp] / src / plot-chart.c
index 795e3113a8da141d428c8a832194557ef47cf8fd..c38a562218652594d7780f5a4a4a898e081293ee 100644 (file)
@@ -14,8 +14,8 @@
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA. */
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA. */
 
 #include <config.h>
 #include <stdio.h>
@@ -166,7 +166,8 @@ chart_write_title(struct chart *chart, const char *title, ...)
   va_list ap;
   char buf[100];
 
-  assert(chart);
+  if ( ! chart ) 
+         return ;
 
   pl_savestate_r(chart->lp);
   pl_ffontsize_r(chart->lp,chart->font_size * 1.5);
@@ -188,7 +189,8 @@ chart_submit(struct chart *chart)
 {
   struct som_entity s;
 
-  assert(chart);
+  if ( ! chart ) 
+     return ;
 
   pl_restorestate_r(chart->lp);
 
@@ -249,8 +251,8 @@ chart_write_yscale(struct chart *ch, double smin, double smax, int ticks)
     chart_rounded_tick( (smax - smin) / (double) ticks);
 
 
-  assert (ch) ;
-
+  if ( !ch ) 
+         return;
 
   ch->y_max = ceil  ( smax / tick_interval ) * tick_interval ; 
   ch->y_min = floor ( smin / tick_interval ) * tick_interval ;