projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lots more changes which hopefully change nothing but the clarity.
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
gtkmm
/
cellrenderer_timetrack.cpp
diff --git
a/synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp
b/synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp
index
754d260
..
95a9d97
100644
(file)
--- a/
synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp
+++ b/
synfig-studio/trunk/src/gtkmm/cellrenderer_timetrack.cpp
@@
-2,7
+2,7
@@
/*! \file cellrenderer_timetrack.cpp
** \brief Template Header
**
/*! \file cellrenderer_timetrack.cpp
** \brief Template Header
**
-** $Id
: cellrenderer_timetrack.cpp,v 1.4 2005/01/13 20:23:01 darco Exp
$
+** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
@@
-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();
{
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)
//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)