Mercurial > hg > svgui
diff layer/TimeInstantLayer.cpp @ 79:19bf27e4fb29
* Replace crash with warning when a transform could not be automatically
re-run
* More sensible default paths for Vamp plugin lookup (at least on Linux and
OS/X)
* A start to making the y coords for time value layers etc align
* Set sensible y coords for text labels in time instant and value layers
author | Chris Cannam |
---|---|
date | Thu, 13 Apr 2006 18:29:10 +0000 |
parents | 45ba0b381c5d |
children | 4b98bda7e94d |
line wrap: on
line diff
--- a/layer/TimeInstantLayer.cpp Wed Apr 12 09:59:40 2006 +0000 +++ b/layer/TimeInstantLayer.cpp Thu Apr 13 18:29:10 2006 +0000 @@ -385,7 +385,8 @@ } int prevX = -1; - + int textY = v->getTextLabelHeight(this, paint); + for (SparseOneDimensionalModel::PointList::const_iterator i = points.begin(); i != points.end(); ++i) { @@ -463,9 +464,7 @@ } if (good) { - paint.drawText(x + iw + 2, - v->height() - paint.fontMetrics().height(), - p.label); + paint.drawText(x + iw + 2, textY, p.label); } }