We noticed that some charts were missing a major tick, (like
0, 0.5, ,1.5, 2.0, 2.5). Fix this.
t += sub_step)
{
int tick_size;
t += sub_step)
{
int tick_size;
- if (fabs((t / step) - (int) (t / step)) < 0.5 * (sub_step / step))
+ if (fabs((t / step) - round (t / step)) < 0.5 * (sub_step / step))
tick_size = ACRE_TICK_MAJOR_SIZE;
else
tick_size = ACRE_TICK_MINOR_SIZE;
tick_size = ACRE_TICK_MAJOR_SIZE;
else
tick_size = ACRE_TICK_MINOR_SIZE;