Skip to content

Commit 157637a

Browse files
author
sfeam
committed
fix typo that swapped min/max (or failed to in this case)
1 parent 9ec5a43 commit 157637a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/axis.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifndef lint
2-
static char *RCSid() { return RCSid("$Id: axis.c,v 1.244 2017-09-10 03:49:31 sfeam Exp $"); }
2+
static char *RCSid() { return RCSid("$Id: axis.c,v 1.245 2017-09-11 03:40:51 sfeam Exp $"); }
33
#endif
44

55
/* GNUPLOT - axis.c */
@@ -197,7 +197,8 @@ void
197197
axis_invert_if_requested(struct axis *axis)
198198
{
199199
if (((axis->range_flags & RANGE_IS_REVERSED)) && (axis->autoscale != 0))
200-
reorder_if_necessary(axis->min, axis->max);
200+
/* NB: The whole point of this is that we want max < min !!! */
201+
reorder_if_necessary(axis->max, axis->min);
201202
}
202203

203204

0 commit comments

Comments
 (0)