Edit in the svn revision number for the canvas 0.3 change.
[synfig.git] / synfig-core / trunk / src / synfig / time.cpp
index 98dbff5..6755b80 100644 (file)
@@ -101,7 +101,7 @@ Time::Time(const String &str_, float fps):
        int read;
        float amount;
 
-       // Now try to read it in the letter-abreviated format
+       // Now try to read it in the letter-abbreviated format
        while(pos<str.size() && sscanf(String(str,pos).c_str(),"%f%n",&amount,&read))
        {
                pos+=read;
@@ -251,7 +251,8 @@ Time::get_string(float fps, Time::Format format)const
 
                                // skip trailing zeros
                                int count = 0;
-                               for (String::reverse_iterator i = seconds.rbegin(); (*i) == '0'; i++)
+                               String::reverse_iterator i = seconds.rbegin();
+                               for ( ; (*i) == '0'; i++)
                                        count++;
 
                                // if we removed too many, go back one place, leaving one zero