Mercurial > hg > svgui
diff view/Pane.cpp @ 223:403bfb88d8d6
* Add display of selection extents in status bar when dragging a selection
* Some build fixes after that i18n update
author | Chris Cannam |
---|---|
date | Wed, 07 Mar 2007 18:00:49 +0000 |
parents | cd81066ac7ad |
children | 9465b5375235 |
line wrap: on
line diff
--- a/view/Pane.cpp Wed Mar 07 17:07:02 2007 +0000 +++ b/view/Pane.cpp Wed Mar 07 18:00:49 2007 +0000 @@ -384,7 +384,6 @@ } const Model *waveformModel = 0; // just for reporting purposes - int verticalScaleWidth = 0; int fontHeight = paint.fontMetrics().height(); int fontAscent = paint.fontMetrics().ascent(); @@ -596,8 +595,8 @@ .arg(modelRate) .arg(srNote); - if (r.x() < verticalScaleWidth + 5 + paint.fontMetrics().width(desc)) { - drawVisibleText(paint, verticalScaleWidth + 5, + if (r.x() < m_scaleWidth + 5 + paint.fontMetrics().width(desc)) { + drawVisibleText(paint, m_scaleWidth + 5, height() - fontHeight + fontAscent - 6, desc, OutlinedText); }