Fix Time::all_as_seconds().
authorCarl Hetherington <cth@carlh.net>
Tue, 20 Jan 2015 11:22:44 +0000 (11:22 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 20 Jan 2015 11:22:44 +0000 (11:22 +0000)
src/sub_time.cc

index ed61cb445522d7655c7bb3a9cf3871535fd0ba66..7d8ebb629932194923c408f94421590f3dd9a9ca 100644 (file)
@@ -156,5 +156,5 @@ Time::from_hms (int h, int m, int s, int ms)
 double
 Time::all_as_seconds () const
 {
-       return seconds() + double(milliseconds ()) / 1000;
+       return _seconds + double(milliseconds ()) / 1000;
 }