X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgtksheet%2Fpsppire-axis-impl.c;h=619e8238dab5c66a5f6d10c738c1351a4fa0de4d;hb=cf053bc3d176906bf29ff570b2f178f32a99994b;hp=48059c1a92600137e5a107c9f0872c3d8a1883a5;hpb=e69bf522d6f67265c40e507b59f449ac65b2ef89;p=pspp diff --git a/lib/gtksheet/psppire-axis-impl.c b/lib/gtksheet/psppire-axis-impl.c index 48059c1a92..619e8238da 100644 --- a/lib/gtksheet/psppire-axis-impl.c +++ b/lib/gtksheet/psppire-axis-impl.c @@ -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 */