Mercurial > hg > svgui
changeset 1259:4d7e566092a7 scale-ticks
Rework log scale calculation, update to changed interface
author | Chris Cannam |
---|---|
date | Thu, 04 May 2017 15:37:43 +0100 |
parents | 0cc6ab236b0d |
children | cdaeff1858af |
files | layer/LinearNumericalScale.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/LinearNumericalScale.cpp Thu May 04 10:24:23 2017 +0100 +++ b/layer/LinearNumericalScale.cpp Thu May 04 15:37:43 2017 +0100 @@ -47,7 +47,7 @@ int prevy = -1; - for (int i = 0; i < int(ticks.ticks.size()); ++i) { + for (int i = 0; i < int(ticks.size()); ++i) { int y, ty; bool drawText = true; @@ -57,8 +57,8 @@ if (layer->getScaleUnits() != "") drawText = false; } - double val = ticks.ticks[i].value; - QString label = QString::fromStdString(ticks.ticks[i].label); + double val = ticks[i].value; + QString label = QString::fromStdString(ticks[i].label); y = layer->getYForValue(v, val);