]> git.lyx.org Git - lyx.git/commitdiff
Add explicative comment.
authorEnrico Forestieri <forenr@lyx.org>
Sat, 23 May 2009 13:51:23 +0000 (13:51 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 23 May 2009 13:51:23 +0000 (13:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29827 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index dc04fc4c1bf17b0a92af49277c651336ff64c12b..df088b8ca0d30d8ac46b0108cee7d3df974ef085 100644 (file)
@@ -1078,6 +1078,9 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        bool loaded = false;
                        string const abstmp = package().temp_dir().absFilename();
                        string const realtmp = package().temp_dir().realPath();
+                       // We have to use os::path_prefix_is() here, instead of
+                       // simply prefixIs(), because the file name comes from
+                       // an external application and may need case adjustment.
                        if (os::path_prefix_is(file_name, abstmp, os::CASE_ADJUSTED)
                            || os::path_prefix_is(file_name, realtmp, os::CASE_ADJUSTED)) {
                                // Needed by inverse dvi search. If it is a file