Some paths weren't getting set up correctly for the MSVC build
[ardour.git] / gtk2_ardour / midi_region_view.cc
index a427424614d1165c1c6551ce6944d068071b481f..ad6a7f60bceac3ec97a6093120a10702a8ef366b 100644 (file)
@@ -1339,7 +1339,7 @@ MidiRegionView::display_patch_changes_on_channel (uint8_t channel, bool active_c
                                const double x = trackview.editor().sample_to_pixel (region_frames);
                                const string patch_name = instrument_info().get_patch_name ((*i)->bank(), (*i)->program(), channel);
                                p->canvas_item()->set_position (ArdourCanvas::Duple (x, 1.0));
-                               p->flag()->set_text (patch_name);
+                               p->set_text (patch_name);
 
                                p->show();
                        }
@@ -1418,6 +1418,9 @@ MidiRegionView::display_sysexes()
                        sysex = boost::shared_ptr<SysEx>(
                                new SysEx (*this, _note_group, text, height, x, 1.0, sysex_ptr));
                        _sys_exes.insert (make_pair (sysex_ptr, sysex));
+               } else {
+                       sysex->set_height (height);
+                       sysex->item().set_position (ArdourCanvas::Duple (x, 1.0));
                }
 
                // Show unless message is beyond the region bounds
@@ -1488,7 +1491,7 @@ MidiRegionView::reset_width_dependent_items (double pixel_width)
        bool hide_all = false;
        PatchChanges::iterator x = _patch_changes.begin();
        if (x != _patch_changes.end()) {
-               hide_all = x->second->flag()->width() >= _pixel_width;
+               hide_all = x->second->width() >= _pixel_width;
        }
 
        if (hide_all) {