summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_labels.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.h')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.h b/gtk2_ardour/port_matrix_column_labels.h
index 213b760a25..9021ec55e3 100644
--- a/gtk2_ardour/port_matrix_column_labels.h
+++ b/gtk2_ardour/port_matrix_column_labels.h
@@ -57,6 +57,10 @@ private:
double channel_x (PortMatrixBundleChannel const &) const;
void queue_draw_for (PortMatrixNode const &);
+ double slanted_height () const {
+ return _height - _highest_group_name - 2 * name_pad();
+ }
+
std::vector<boost::shared_ptr<ARDOUR::Bundle> > _bundles;
double _longest_bundle_name;
double _longest_channel_name;