X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fcellrenderer_timetrack.cpp;h=95a9d973d44c54772a580a309aef003233132e17;hb=e85c9a59f64ccad6934c40e2689d11b03655693d;hp=8a3f7391724deb0675cfeab12e53ac7abf0dd862;hpb=92eb33f5e953a0e3f5bb6cd9f068f6787e209901;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp b/synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp index 8a3f739..95a9d97 100644 --- a/synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp +++ b/synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp @@ -158,6 +158,14 @@ bool get_closest_time(const synfig::Node::time_set &tset, const Time &t, const T { Node::time_set::const_iterator i,j,end = tset.end(); + // stop the crash mentioned in bug #1689282 + // doesn't solve the underlying problem though, I don't think + if (tset.size() == 0) + { + synfig::error(__FILE__":%d: tset.size() == 0",__LINE__); + return false; + } + //TODO add in RangeGet so it's not so damn hard to click on points i = tset.upper_bound(t); //where t is the lower bound, t < [first,i)