Fix reverse search when the filename contains a forbidden character

(including, but not only, spaces).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34390 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-05-08 23:53:35 +00:00
parent 0b9ecb750d
commit 08f2841940
2 changed files with 2 additions and 16 deletions

View File

@ -6428,23 +6428,10 @@ lyxpipe
\begin_layout Standard
Reverse search is triggered by double-click.
\change_inserted 1 1273345633
\change_inserted 1 1271453423
\end_layout
\begin_layout Subsection
\change_inserted 1 1273345657
Troubleshooting
\end_layout
\begin_layout Standard
\change_inserted 1 1273345723
If you prepared reverse search environment and reverse search still does
not work make sure your file does not contain spaces in its name.
\end_layout
\begin_layout Section
\change_inserted 1 1271453442

View File

@ -272,8 +272,7 @@ Buffer * BufferList::getBufferFromTmp(string const & s)
for (; it < end; ++it) {
if (prefixIs(s, (*it)->temppath())) {
// check whether the filename matches the master
string const master_name = changeExtension(onlyFileName(
(*it)->absFileName()), ".tex");
string const master_name = (*it)->latexName();
if (suffixIs(s, master_name))
return *it;
// if not, try with the children