]> git.lyx.org Git - features.git/commitdiff
Spare a few cpu cycles when abstmp == realtmp.
authorEnrico Forestieri <forenr@lyx.org>
Sat, 2 May 2009 18:55:55 +0000 (18:55 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 2 May 2009 18:55:55 +0000 (18:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29500 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index d65568ba19d33878a0738e1ec43e5b02364c9656..ece3b21f57a5e2933021c1d7935ff0b9019e984e 100644 (file)
@@ -1086,7 +1086,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                                // in tmpdir, call the apropriated function.
                                // If tmpdir is a symlink, we may have the real
                                // path passed back, so we correct for that.
-                               if (prefixIs(file_name, realtmp))
+                               if (!prefixIs(file_name, abstmp))
                                        file_name = subst(file_name, realtmp, abstmp);
                                buf = theBufferList().getBufferFromTmp(file_name);
                        } else {