Added new files resulting from directory restructuring.
[pspp-builds.git] / src / box-whisker.c
index 57930c86e9e3d739baa9273ee994d63fe77b579f..73d0866a2e1cb8d06e5082eab3a78bd933dc2a0f 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 "chart.h"
@@ -80,9 +80,6 @@ boxplot_draw_boxplot(struct chart *ch,
   double whisker[2];
   int i;
 
-  assert(m);
-
-
   const double *hinge = m->hinge;
   struct weighted_value **wvp = m->wvp;
   const int n_data = m->n_data;
@@ -102,6 +99,8 @@ boxplot_draw_boxplot(struct chart *ch,
   const double box_top = 
     ch->data_bottom + ( hinge[2] - ch->y_min ) * ch->ordinate_scale;
 
+  assert(m);
+
   /* Can't really draw a boxplot if there's no data */
   if ( n_data == 0 ) 
          return ;
@@ -119,7 +118,7 @@ boxplot_draw_boxplot(struct chart *ch,
     
     }
     
-  
+  {
   const double bottom_whisker = 
     ch->data_bottom + ( whisker[0] - ch->y_min ) * ch->ordinate_scale;
 
@@ -181,6 +180,7 @@ boxplot_draw_boxplot(struct chart *ch,
   pl_fline_r(ch->lp, 
             box_centre, top_whisker,
             box_centre, box_top);
+  }
 
   /* Draw outliers */
   for ( i = 0 ; i < n_data ; ++i )