Add c_str() methods for synfig::Time and synfig::TimePoint when _DEBUG is defined.
[synfig.git] / synfig-core / trunk / src / synfig / node.cpp
index eaab964..e0815bd 100644 (file)
@@ -118,6 +118,14 @@ refresh_node(synfig::Node* node, GUID old_guid)
 
 /* === M E T H O D S ======================================================= */
 
+#ifdef _DEBUG
+const char *
+TimePoint::c_str()const
+{
+       return get_time().get_string().c_str();
+}
+#endif
+
 void
 TimePoint::absorb(const TimePoint& x)
 {