projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ValueBase::get_string() for debugging. Barely tested, but not used either.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
valuenode_timestring.cpp
diff --git
a/synfig-core/trunk/src/synfig/valuenode_timestring.cpp
b/synfig-core/trunk/src/synfig/valuenode_timestring.cpp
index
0198716
..
d5f6435
100644
(file)
--- a/
synfig-core/trunk/src/synfig/valuenode_timestring.cpp
+++ b/
synfig-core/trunk/src/synfig/valuenode_timestring.cpp
@@
-57,7
+57,7
@@
ValueNode_TimeString::ValueNode_TimeString(const ValueBase &value):
switch(value.get_type())
{
case ValueBase::TYPE_STRING:
switch(value.get_type())
{
case ValueBase::TYPE_STRING:
- set_link("time",ValueNode_Const::create(Time()));
+ set_link("time",ValueNode_Const::create(Time(
0
)));
break;
default:
throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
break;
default:
throw Exception::BadType(ValueBase::type_local_name(value.get_type()));
@@
-91,7
+91,10
@@
ValueNode_TimeString::operator()(Time t)const
switch (get_type())
{
case ValueBase::TYPE_STRING:
switch (get_type())
{
case ValueBase::TYPE_STRING:
- return time.get_string(get_parent_canvas()->rend_desc().get_frame_rate());
+ if (get_root_canvas())
+ return time.get_string(get_root_canvas()->rend_desc().get_frame_rate());
+ else
+ return time.get_string();
default:
break;
}
default:
break;
}