more debugging
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 1 Nov 2006 00:52:09 +0000 (00:52 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 1 Nov 2006 00:52:09 +0000 (00:52 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1045 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/audio_region_view.cc
gtk2_ardour/automation_line.cc

index aaeea53878a8527246dd4a98efb471708df76e7c..d9cbfd01c305f0c7bbe30fec7a6f7633f079b481 100644 (file)
@@ -155,6 +155,8 @@ AudioRegionView::init (Gdk::Color& basic_color, bool wfd)
 
        gain_line = new AudioRegionGainLine (foo, trackview.session(), *this, *group, audio_region()->envelope());
 
+       cerr << "Initializing RV for " << audio_region()->name() << " with " << audio_region()->envelope().size() << " points\n";
+
        if (!(_flags & EnvelopeVisible)) {
                gain_line->hide ();
        } else {
index 50f58b827cf51ce4f5d5fefbc99259ca47756c73..65423c549fcb2e09f57db31cb882b1fb7732509c 100644 (file)
@@ -744,7 +744,7 @@ AutomationLine::determine_visible_control_points (ALPoints& points)
                */
 
                this_rx = (uint32_t) rint (tx);
-               this_ry = (unsigned long) rint (ty); 
+               this_ry = (uint32_t) rint (ty); 
  
                if (view_index && pi != npoints && (this_rx == prev_rx) && (this_ry == prev_ry) || 
                    ((this_rx - prev_rx) < (box_size + 2))) {