From 5822af9bba765e8ee4967f57f55cf9895c3c85b6 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 2 May 2009 18:55:55 +0000 Subject: [PATCH] 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 --- src/LyXFunc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.2