Mercurial > hg > svgui
changeset 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 | 1e0744b2cebe | 
| files | layer/TimeValueLayer.cpp | 
| diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] | 
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;
