From: Good Guy Date: Fri, 28 Sep 2018 01:50:21 +0000 (-0600) Subject: repair transition strip_y limits X-Git-Url: https://cinelerra-gg.org/git/?a=commitdiff_plain;h=440125c1efd670dee3200fc2466564eebc13bd6c;p=goodguy%2Fhistory.git repair transition strip_y limits --- diff --git a/cinelerra-5.1/cinelerra/trackcanvas.C b/cinelerra-5.1/cinelerra/trackcanvas.C index ab558a5c..76b69aab 100644 --- a/cinelerra-5.1/cinelerra/trackcanvas.C +++ b/cinelerra-5.1/cinelerra/trackcanvas.C @@ -1844,12 +1844,10 @@ void TrackCanvas::draw_transitions() for(Edit *edit = track->edits->first; edit; edit = edit->next) { if(!edit->transition) continue; edit_dimensions(edit, x, y, w, h); - int strip_x = x; + int strip_x = x, edit_y = y; get_transition_coords(edit, x, y, w, h); - int strip_h = mwindow->theme->get_image("plugin_bg_data")->get_h(); - int track_y = edit->edits->track->y_pixel; - int strip_y = y - strip_h; - if( strip_y < track_y ) strip_y = track_y; + int strip_y = y - mwindow->theme->get_image("plugin_bg_data")->get_h(); + if( strip_y < edit_y ) strip_y = edit_y; int strip_w = Units::round(edit->track->from_units(edit->transition->length) * mwindow->edl->session->sample_rate / mwindow->edl->local_session->zoom_sample);