]> git.lyx.org Git - lyx.git/commitdiff
2002-05-30 Lars Gullik Bj�nnes <larsbj@birdstep.com>
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 30 May 2002 16:47:45 +0000 (16:47 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 30 May 2002 16:47:45 +0000 (16:47 +0000)
insetexternal.C (updateExternal): dont only look for difftime in global scope

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4301 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetexternal.C

index b973c71494ab717b2b406656a72fc807bc68ea12..279584d2c995347d05f2451b25ceca73b77a244f 100644 (file)
@@ -1,6 +1,7 @@
 2002-05-30  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * insetexternal.C (clone): fix () bug when using new
+       (updateExternal): don't only look for difftime in global scope
 
 2002-05-30  John Levon  <moz@compsoc.man.ac.uk>
 
index dd735bef019050e615cdd27337d03afe06181369..fdfe4a287bfb8e45fad9e0d28f883a6b87fefcb9 100644 (file)
@@ -292,8 +292,8 @@ void InsetExternal::updateExternal(string const & format,
                FileInfo fi(params_.filename);
                FileInfo fi2(resultfile);
                if (fi2.exist() && fi.exist() &&
-                   ::difftime(fi2.getModificationTime(),
-                              fi.getModificationTime()) >= 0) {
+                   difftime(fi2.getModificationTime(),
+                            fi.getModificationTime()) >= 0) {
                        lyxerr[Debug::FILES] << resultfile
                                             << " is up to date" << endl;
                        return;