Mercurial > hg > svgui
diff layer/TimeRulerLayer.cpp @ 1326:97c68bffbda6 zoom
More ZoomLevel updates
author | Chris Cannam |
---|---|
date | Thu, 20 Sep 2018 10:45:24 +0100 |
parents | bc2cb82050a0 |
children | ab2cafd3a7cb |
line wrap: on
line diff
--- a/layer/TimeRulerLayer.cpp Wed Sep 19 15:42:22 2018 +0100 +++ b/layer/TimeRulerLayer.cpp Thu Sep 20 10:45:24 2018 +0100 @@ -230,7 +230,7 @@ int minPixelSpacing = 50; sv_frame_t incFrame = lrint((incms * sampleRate) / 1000); - int incX = int(round(v->getZoomLevel().framesToPixels(incFrame))); + int incX = int(round(v->getZoomLevel().framesToPixels(double(incFrame)))); int ticks = 10; if (incX < minPixelSpacing * 2) { ticks = quarter ? 4 : 5;