Implement operator- for TimePoints.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 21 Oct 2007 21:36:18 +0000 (21:36 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 21 Oct 2007 21:36:18 +0000 (21:36 +0000)
git-svn-id: http://svn.voria.com/code@939 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/node.h

index ffb8f41..2705830 100644 (file)
@@ -74,6 +74,9 @@ public:
 inline TimePoint operator+(TimePoint lhs,const Time& rhs)
        { lhs.set_time(lhs.get_time()+rhs); return lhs; }
 
+inline TimePoint operator-(TimePoint lhs,const Time& rhs)
+       { lhs.set_time(lhs.get_time()-rhs); return lhs; }
+
 inline bool operator<(const TimePoint& lhs,const TimePoint& rhs)
        { return lhs.get_time()<rhs.get_time(); }