Spare a few cpu cycles when abstmp == realtmp.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29500 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-05-02 18:55:55 +00:00
parent ccc77c73da
commit 5822af9bba

View File

@ -1086,7 +1086,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
// in tmpdir, call the apropriated function. // in tmpdir, call the apropriated function.
// If tmpdir is a symlink, we may have the real // If tmpdir is a symlink, we may have the real
// path passed back, so we correct for that. // 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); file_name = subst(file_name, realtmp, abstmp);
buf = theBufferList().getBufferFromTmp(file_name); buf = theBufferList().getBufferFromTmp(file_name);
} else { } else {