Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 434:4ceb5264404d | 435:6324461340b1 |
|---|---|
| 859 } else { | 859 } else { |
| 860 paint.drawLine(boxx + boxw - boxw/3, y, boxx + boxw, y); | 860 paint.drawLine(boxx + boxw - boxw/3, y, boxx + boxw, y); |
| 861 } | 861 } |
| 862 | 862 |
| 863 if (drawText) { | 863 if (drawText) { |
| 864 paint.drawText(tx + w - paint.fontMetrics().width(label) - 8, | 864 if (m_plotStyle != PlotSegmentation) { |
| 865 ty, label); | 865 paint.drawText(tx + w - paint.fontMetrics().width(label) - 8, |
| 866 ty, label); | |
| 867 } else { | |
| 868 paint.drawText(tx, ty, label); | |
| 869 } | |
| 866 } | 870 } |
| 867 | 871 |
| 868 prevy = y; | 872 prevy = y; |
| 869 val += inc; | 873 val += inc; |
| 870 } | 874 } |
