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
This commit is contained in:
Carl Hetherington 2009-02-05 12:56:12 +00:00
parent ee4e28751e
commit 67d545c080
6 changed files with 26 additions and 9 deletions

View file

@ -17,8 +17,9 @@
*/
#include <iostream>
#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);