summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_streamview.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-11-14 15:01:53 +0000
committerCarl Hetherington <carl@carlh.net>2010-11-14 15:01:53 +0000
commita46af0460b0fdcc145c4dd282fa4fe071d4971fc (patch)
tree81a1a2f4c779958df0f19d976e6cfd003afea5eb /gtk2_ardour/midi_streamview.h
parent7a25fa1beb76b7148d4f96de5629d8b639aac9e7 (diff)
Create a new layer if required on record to a track in stacked mode. Fixes #3391.
git-svn-id: svn://localhost/ardour2/branches/3.0@8026 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_streamview.h')
-rw-r--r--gtk2_ardour/midi_streamview.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_streamview.h b/gtk2_ardour/midi_streamview.h
index b29f030e61..0774fd61bd 100644
--- a/gtk2_ardour/midi_streamview.h
+++ b/gtk2_ardour/midi_streamview.h
@@ -77,7 +77,7 @@ class MidiStreamView : public StreamView
void redisplay_track ();
inline double contents_height() const
- { return (_trackview.current_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2); }
+ { return (child_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2); }
inline double note_to_y(uint8_t note) const
{ return contents_height()