Mercurial > hg > svgui
diff layer/TimeValueLayer.cpp @ 435:6324461340b1
* Fix text positioning in segmentation-mode layer scale
author | Chris Cannam |
---|---|
date | Tue, 21 Oct 2008 19:31:50 +0000 |
parents | 4ceb5264404d |
children | 755243c67f59 |
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp Thu Oct 16 16:10:27 2008 +0000 +++ b/layer/TimeValueLayer.cpp Tue Oct 21 19:31:50 2008 +0000 @@ -861,8 +861,12 @@ } if (drawText) { - paint.drawText(tx + w - paint.fontMetrics().width(label) - 8, - ty, label); + if (m_plotStyle != PlotSegmentation) { + paint.drawText(tx + w - paint.fontMetrics().width(label) - 8, + ty, label); + } else { + paint.drawText(tx, ty, label); + } } prevy = y;