Create a new layer if required on record to a track in stacked mode. Fixes #3391.
[ardour.git] / gtk2_ardour / midi_streamview.h
index b29f030e61c4038c35e4a8f6e757e46b9ef6b099..0774fd61bd08385f754525eb44a9b1d4a1d83109 100644 (file)
@@ -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()