pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/src/plot-chart.c


From: John Darrington
Subject: [Pspp-cvs] Changes to pspp/src/plot-chart.c
Date: Wed, 13 Apr 2005 06:10:06 -0400

Index: pspp/src/plot-chart.c
diff -u pspp/src/plot-chart.c:1.3 pspp/src/plot-chart.c:1.4
--- pspp/src/plot-chart.c:1.3   Mon Feb 14 12:36:01 2005
+++ pspp/src/plot-chart.c       Wed Apr 13 10:09:59 2005
@@ -166,7 +166,8 @@
   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);
@@ -250,8 +251,8 @@
     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 ;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]