Commit 14d42560 authored by Ryan Davis's avatar Ryan Davis

fixed some nullref errors with the new draw-zero-p functionality, assumed no...

fixed some nullref errors with the new draw-zero-p functionality, assumed no if there was no x-axis on the chart.

darcs-hash:20090413194700-ac9f3-f31a44c99f654967a96e8eafe9ede3a8d3108f39.gz
parent 49a0f93d
......@@ -211,8 +211,10 @@ a function of 1 argument to control label formatting"
(mapcan #'(lambda (series)
(find-extremes (data series)))
(chart-elements chart))))
(x-zero (draw-zero-p (x-axis chart)))
(y-zero (draw-zero-p (y-axis chart))))
(x-zero (ignore-errors
(draw-zero-p (x-axis chart))))
(y-zero (ignore-errors
(draw-zero-p (y-axis chart)))))
(if (or x-zero y-zero)
(destructuring-bind ((min-x min-y) (max-x max-y)) data-minmax
(declare (ignore max-x max-y))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment