mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
Fix sizing of port matrix column labels.
git-svn-id: svn://localhost/ardour2/branches/3.0@5492 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
9649a94053
commit
7ccb2f8689
1 changed files with 10 additions and 9 deletions
|
|
@ -50,7 +50,7 @@ PortMatrixColumnLabels::compute_dimensions ()
|
||||||
/* width of the whole thing */
|
/* width of the whole thing */
|
||||||
_width = 0;
|
_width = 0;
|
||||||
_highest_group_name = 0;
|
_highest_group_name = 0;
|
||||||
|
|
||||||
for (PortGroupList::List::const_iterator i = _matrix->columns()->begin(); i != _matrix->columns()->end(); ++i) {
|
for (PortGroupList::List::const_iterator i = _matrix->columns()->begin(); i != _matrix->columns()->end(); ++i) {
|
||||||
PortGroup::BundleList const c = _matrix->columns()->bundles();
|
PortGroup::BundleList const c = _matrix->columns()->bundles();
|
||||||
for (PortGroup::BundleList::const_iterator j = c.begin (); j != c.end(); ++j) {
|
for (PortGroup::BundleList::const_iterator j = c.begin (); j != c.end(); ++j) {
|
||||||
|
|
@ -64,7 +64,7 @@ PortMatrixColumnLabels::compute_dimensions ()
|
||||||
if (ext.height > _highest_text) {
|
if (ext.height > _highest_text) {
|
||||||
_highest_text = ext.height;
|
_highest_text = ext.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (uint32_t k = 0; k < j->bundle->nchannels (); ++k) {
|
for (uint32_t k = 0; k < j->bundle->nchannels (); ++k) {
|
||||||
|
|
||||||
cairo_text_extents (
|
cairo_text_extents (
|
||||||
|
|
@ -72,13 +72,14 @@ PortMatrixColumnLabels::compute_dimensions ()
|
||||||
j->bundle->channel_name (k).c_str(),
|
j->bundle->channel_name (k).c_str(),
|
||||||
&ext
|
&ext
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
if (ext.width > _longest_channel_name) {
|
||||||
if (ext.width > _longest_channel_name) {
|
_longest_channel_name = ext.width;
|
||||||
_longest_channel_name = ext.width;
|
}
|
||||||
}
|
|
||||||
if (ext.height > _highest_text) {
|
if (ext.height > _highest_text) {
|
||||||
_highest_text = ext.height;
|
_highest_text = ext.height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue