From: Enrico Forestieri Date: Sat, 2 May 2009 18:55:55 +0000 (+0000) Subject: Spare a few cpu cycles when abstmp == realtmp. X-Git-Tag: 2.0.0~6696 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5822af9bba765e8ee4967f57f55cf9895c3c85b6;p=features.git 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 --- diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index d65568ba19..ece3b21f57 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -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 {