From 67d545c0809522e8d32b919941f2be56d94c7ba3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 5 Feb 2009 12:56:12 +0000 Subject: Small fixes to port matrix rendering, mostly visible when using the bundle manager. git-svn-id: svn://localhost/ardour2/branches/3.0@4491 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix_component.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/port_matrix_component.cc') diff --git a/gtk2_ardour/port_matrix_component.cc b/gtk2_ardour/port_matrix_component.cc index 02d754f5ce..a68e21730d 100644 --- a/gtk2_ardour/port_matrix_component.cc +++ b/gtk2_ardour/port_matrix_component.cc @@ -17,8 +17,9 @@ */ -#include #include "port_matrix_component.h" +#include "port_matrix.h" +#include "port_matrix_body.h" /** Constructor. * @param p Port matrix that we're in. @@ -56,6 +57,7 @@ PortMatrixComponent::get_pixmap (GdkDrawable *drawable) if (_dimension_computation_required) { compute_dimensions (); _dimension_computation_required = false; + _body->component_size_changed (); } /* we may be zero width or height; if so, just @@ -102,6 +104,7 @@ PortMatrixComponent::dimensions () if (_dimension_computation_required) { compute_dimensions (); _dimension_computation_required = false; + _body->component_size_changed (); } return std::make_pair (_width, _height); -- cgit v1.2.3