Mercurial > hg > svgui
diff layer/LogColourScale.cpp @ 1045:f535f6e5dbb0 alignment-simple
Merge in from SV 3.0-integration branches
author | Chris Cannam |
---|---|
date | Wed, 02 Mar 2016 17:25:27 +0000 |
parents | 4fe7a09be0fe |
children | 5144d7185fb5 |
line wrap: on
line diff
--- a/layer/LogColourScale.cpp Mon Jun 15 09:15:55 2015 +0100 +++ b/layer/LogColourScale.cpp Wed Mar 02 17:25:27 2016 +0000 @@ -25,21 +25,21 @@ #include "view/View.h" int -LogColourScale::getWidth(View *, +LogColourScale::getWidth(LayerGeometryProvider *, QPainter &paint) { return paint.fontMetrics().width("-000.00") + 15; } void -LogColourScale::paintVertical(View *v, +LogColourScale::paintVertical(LayerGeometryProvider *v, const ColourScaleLayer *layer, QPainter &paint, int /* x0 */, double minlog, double maxlog) { - int h = v->height(); + int h = v->getPaintHeight(); int n = 10;