From: Georg Baum Date: Tue, 21 Jun 2005 09:01:40 +0000 (+0000) Subject: make quoted filenames work when " is active X-Git-Tag: 1.6.10~14203 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1a8b8902c0fd3675d352f4496b605c42035c9542;p=features.git make quoted filenames work when " is active git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10094 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 7bde2258ff..ca7960c82d 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2005-06-21 Georg Baum + + * insetgraphics.C (stripExtensionIfPossible): adjust test for " + 2005-06-20 Georg Baum * insetgraphics.C (prepareFile): don't strip the extension of quoted diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index 3b6e2b4146..b91a4e134e 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -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 "); }