13
0

Tweak region view wave height. Fixes #3318.

git-svn-id: svn://localhost/ardour2/branches/3.0@7436 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-07-17 00:56:27 +00:00
parent daec83d258
commit 3d7487c9be
2 changed files with 4 additions and 5 deletions

View File

@ -497,13 +497,10 @@ AudioRegionView::set_height (gdouble height)
uint32_t wcnt = waves.size();
// FIXME: ick
height -= 2;
for (uint32_t n = 0; n < wcnt; ++n) {
gdouble ht;
if ((height) < NAME_HIGHLIGHT_THRESH) {
if (height < NAME_HIGHLIGHT_THRESH) {
ht = ((height - 2 * wcnt) / (double) wcnt);
} else {
ht = (((height - 2 * wcnt) - NAME_HIGHLIGHT_SIZE) / (double) wcnt);

View File

@ -749,7 +749,9 @@ TimeAxisViewItem::reset_width_dependent_items (double pixel_width)
frame_handle_end->hide();
}
} if (pixel_width < 2.0) {
}
if (pixel_width < 2.0) {
if (show_vestigial) {
vestigial_frame->show();