summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_labels.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-08-04 21:50:08 +0000
committerCarl Hetherington <carl@carlh.net>2009-08-04 21:50:08 +0000
commit7ccb2f8689549ef77c32566aa8bd11ed83957e4e (patch)
tree018d4233de014e7f5e8dde7ec9aad280cfae9aec /gtk2_ardour/port_matrix_column_labels.cc
parent9649a94053eda177086ac2930c7d172db3a2af11 (diff)
Fix sizing of port matrix column labels.
git-svn-id: svn://localhost/ardour2/branches/3.0@5492 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.cc b/gtk2_ardour/port_matrix_column_labels.cc
index 4979c95254..6dec2524d0 100644
--- a/gtk2_ardour/port_matrix_column_labels.cc
+++ b/gtk2_ardour/port_matrix_column_labels.cc
@@ -50,7 +50,7 @@ PortMatrixColumnLabels::compute_dimensions ()
/* width of the whole thing */
_width = 0;
_highest_group_name = 0;
-
+
for (PortGroupList::List::const_iterator i = _matrix->columns()->begin(); i != _matrix->columns()->end(); ++i) {
PortGroup::BundleList const c = _matrix->columns()->bundles();
for (PortGroup::BundleList::const_iterator j = c.begin (); j != c.end(); ++j) {
@@ -64,7 +64,7 @@ PortMatrixColumnLabels::compute_dimensions ()
if (ext.height > _highest_text) {
_highest_text = ext.height;
}
-
+
for (uint32_t k = 0; k < j->bundle->nchannels (); ++k) {
cairo_text_extents (
@@ -72,13 +72,14 @@ PortMatrixColumnLabels::compute_dimensions ()
j->bundle->channel_name (k).c_str(),
&ext
);
- }
-
- if (ext.width > _longest_channel_name) {
- _longest_channel_name = ext.width;
- }
- if (ext.height > _highest_text) {
- _highest_text = ext.height;
+
+ if (ext.width > _longest_channel_name) {
+ _longest_channel_name = ext.width;
+ }
+
+ if (ext.height > _highest_text) {
+ _highest_text = ext.height;
+ }
}
}