Convert the rest of the error and warning dialogs to Gtk::MessageDialog since it...
[synfig.git] / synfig-studio / trunk / src / synfigapp / cvs.cpp
index 0ebb525..c1565ca 100644 (file)
@@ -203,11 +203,11 @@ CVSInfo::in_repository()const
 bool
 CVSInfo::is_modified()const
 {
+       if(!in_sandbox() || !in_repository())
+               return false;
 #ifdef _DEBUG
        synfig::info("%d-%d=%d",get_current_timestamp(),get_original_timestamp(),get_current_timestamp()-get_original_timestamp());
 #endif
-       if(!in_sandbox() || !in_repository())
-               return false;
        return get_current_timestamp()!=get_original_timestamp() && abs(get_current_timestamp()-get_original_timestamp())!=3600;
 }
 
@@ -238,7 +238,10 @@ CVSInfo::get_current_timestamp()const
                synfig::error("Unable to get file stats");
                return false;
        }
-       return st.st_mtime+timezone+(daylight-1)*3600;
+       time_t ret((daylight-1)*3600);
+       //ret+=timezone;
+       ret+=st.st_mtime;
+       return ret;
 }
 
 synfig::String