Added the ability to resize string variables from the GUI. Thanks to
[pspp-builds.git] / src / data / datasheet.c
index 971144cb2305981646b346bd90effa07a5afcf27..913c8e5aff495f97055b8a7a62579716d3840f77 100644 (file)
@@ -354,6 +354,8 @@ datasheet_delete_columns (struct datasheet *ds, size_t start, size_t cnt)
 {
   size_t lcol;
 
+  assert ( start + cnt <= axis_get_size (ds->columns) );
+
   /* Free up columns for reuse. */
   for (lcol = start; lcol < start + cnt; lcol++)
     {