From: dooglus Date: Sun, 9 Mar 2008 12:55:59 +0000 (+0000) Subject: Don't render waypoints that lie outside the bounds of the timetrack's adjustment. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c937811a99664efe5249d9188616d51c04f0ff1b;p=synfig.git Don't render waypoints that lie outside the bounds of the timetrack's adjustment. git-svn-id: http://svn.voria.com/code@1904 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp b/synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp index e2ad77a..00fafd9 100644 --- a/synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp +++ b/synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp @@ -313,6 +313,7 @@ CellRenderer_TimeTrack::render_vfunc( Time t_orig = i->get_time(); if(!t_orig.is_valid()) continue; Time t = t_orig - time_offset; + if(tget_lower() || t>adjustment->get_upper()) continue; //if it found it... (might want to change comparison, and optimize // sel_times.find to not produce an overall nlogn solution)