Mercurial > hg > svgui
diff layer/TimeRulerLayer.h @ 1346:4c28e3302045 zoom
Avoid overflow problems when dealing with large numbers of microseconds
author | Chris Cannam |
---|---|
date | Fri, 28 Sep 2018 18:28:44 +0100 |
parents | ab2cafd3a7cb |
children | a18e78b9c78b |
line wrap: on
line diff
--- a/layer/TimeRulerLayer.h Fri Sep 28 12:31:12 2018 +0100 +++ b/layer/TimeRulerLayer.h Fri Sep 28 18:28:44 2018 +0100 @@ -68,7 +68,7 @@ virtual int getDefaultColourHint(bool dark, bool &impose); - int getMajorTickUSec(LayerGeometryProvider *, bool &quarterTicks) const; + int64_t getMajorTickUSec(LayerGeometryProvider *, bool &quarterTicks) const; int getXForUSec(LayerGeometryProvider *, double usec) const; };