Prevent widths less than 1
[pspp-builds.git] / lib / gtksheet / psppire-axis-impl.c
index 48059c1a92600137e5a107c9f0872c3d8a1883a5..619e8238dab5c66a5f6d10c738c1351a4fa0de4d 100644 (file)
@@ -398,6 +398,7 @@ resize (PsppireAxis *axis, gint posn, glong size)
 
   struct axis_node *an;
   g_return_if_fail (posn >= 0);
+  g_return_if_fail (size > 0);
 
   /* Silently ignore this request if the position is greater than the number of
      units in the axis */