make quoted filenames work when " is active

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10094 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-06-21 09:01:40 +00:00
parent 82c5848058
commit 1a8b8902c0
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-06-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetgraphics.C (stripExtensionIfPossible): adjust test for "
2005-06-20 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetgraphics.C (prepareFile): don't strip the extension of quoted

View File

@ -529,7 +529,7 @@ string const stripExtensionIfPossible(string const & file)
// The automatic format selection does not work if the file
// name is escaped.
string const latex_name = latex_path(file);
if (latex_name[0] == '"')
if (contains(latex_name, '"'))
return latex_name;
return subst(latex_path(RemoveExtension(file)), ".", "\\lyxdot ");
}