Fixed more gcc 2.95 problems
[pspp-builds.git] / src / barchart.c
index 86e69b658f1e6453cd7601dfae64cec6a8dab897..5c00d4f5c1954ad07a42f08f93709296db63179d 100644 (file)
@@ -114,7 +114,6 @@ void
 draw_barchart(struct chart *ch, const char *title, 
              const char *xlabel, const char *ylabel, enum bar_opts opt)
 {
-
   double d;
   int i;
 
@@ -122,11 +121,12 @@ draw_barchart(struct chart *ch, const char *title,
   
   double bar_width = interval_size / 1.1 ;
 
+  double ordinate_scale = fabs(ch->data_top -  ch->data_bottom) /
+    fabs(y_max - y_min) ; 
+
   if ( opt != BAR_STACKED ) 
       bar_width /= SUB_CATAGORIES;
 
-  double ordinate_scale = fabs(ch->data_top -  ch->data_bottom) / fabs(y_max - y_min) ;
-
   /* Move to data bottom-left */
   pl_move_r(ch->lp, ch->data_left, ch->data_bottom);