# HG changeset patch # User Chris Cannam # Date 1457094211 0 # Node ID e8102ff5573b5d89c54da4a92b9c7fbd1a27962b # Parent 86a8145a1897e9c887593f7e25f88b1adcb42534 Use drawVisibleText for box labels diff -r 86a8145a1897 -r e8102ff5573b layer/Colour3DPlotLayer.cpp --- a/layer/Colour3DPlotLayer.cpp Fri Mar 04 12:23:07 2016 +0000 +++ b/layer/Colour3DPlotLayer.cpp Fri Mar 04 12:23:31 2016 +0000 @@ -1416,10 +1416,12 @@ double value = m_model->getValueAt(sx, sy); snprintf(labelbuf, buflen, "%06f", value); QString text(labelbuf); - paint.setPen(v->getBackground()); - paint.drawText(rx0 + 2, - ry0 - h / sh - 1 + 2 + paint.fontMetrics().ascent(), - text); + v->drawVisibleText + (paint, + rx0 + 2, + ry0 - h / sh - 1 + 2 + paint.fontMetrics().ascent(), + text, + View::OutlinedText); } } }