# HG changeset patch # User Chris Cannam # Date 1493908663 -3600 # Node ID 4d7e566092a763051b45021558aeea686ba28928 # Parent 0cc6ab236b0d8dbbecdb8aac46b08ae07991b0c1 Rework log scale calculation, update to changed interface diff -r 0cc6ab236b0d -r 4d7e566092a7 layer/LinearNumericalScale.cpp --- 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);