# HG changeset patch # User Chris Cannam # Date 1224617510 0 # Node ID 6324461340b1137304fc20639e10d00326d196e4 # Parent 4ceb5264404d5f042decbd5946318b2cf52de4c6 * Fix text positioning in segmentation-mode layer scale diff -r 4ceb5264404d -r 6324461340b1 layer/TimeValueLayer.cpp --- 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;