Mercurial > hg > svcore
changeset 1423:04ce84f21af3
Merge
author | Chris Cannam |
---|---|
date | Thu, 31 Aug 2017 18:46:03 +0100 |
parents | 91001e2bb96a (diff) 8b7d6c1e1ab7 (current diff) |
children | c7e68755c7ec |
files | base/ScaleTickIntervals.h |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/base/ScaleTickIntervals.h Thu Jul 20 14:52:49 2017 +0100 +++ b/base/ScaleTickIntervals.h Thu Aug 31 18:46:03 2017 +0100 @@ -259,6 +259,9 @@ } static Tick makeTick(Display display, int precision, double value) { + if (value == -0.0) { + value = 0.0; + } const int buflen = 40; char buffer[buflen]; snprintf(buffer, buflen,