X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fvtimebar.C;h=d1aa168d21bf09769862e52f497d72ae95fa7ede;hp=a62e347c0e7152c7cf2e497a674c73349f35ca1f;hb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;hpb=5a1b2bb96f2bd6b7ef4f8031763683726c02219d diff --git a/cinelerra-5.1/cinelerra/vtimebar.C b/cinelerra-5.1/cinelerra/vtimebar.C index a62e347c..d1aa168d 100644 --- a/cinelerra-5.1/cinelerra/vtimebar.C +++ b/cinelerra-5.1/cinelerra/vtimebar.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #include "edl.h" @@ -28,15 +28,15 @@ #include "vwindowgui.h" -VTimeBar::VTimeBar(MWindow *mwindow, +VTimeBar::VTimeBar(MWindow *mwindow, VWindowGUI *gui, int x, int y, - int w, + int w, int h) - : TimeBar(mwindow, + : TimeBar(mwindow, gui, - x, + x, y, w, h) @@ -79,7 +79,7 @@ void VTimeBar::select_label(double position) if(shift_down()) { - if(position > edl->local_session->get_selectionend(1) / 2 + + if(position > edl->local_session->get_selectionend(1) / 2 + edl->local_session->get_selectionstart(1) / 2) { @@ -97,8 +97,8 @@ void VTimeBar::select_label(double position) } // Que the CWindow - gui->vwindow->update_position(CHANGE_NONE, - 0, + gui->vwindow->update_position(CHANGE_NONE, + 0, 1, 0); update(1);