From 1a8b8902c0fd3675d352f4496b605c42035c9542 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Tue, 21 Jun 2005 09:01:40 +0000 Subject: [PATCH] make quoted filenames work when " is active git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10094 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 4 ++++ src/insets/insetgraphics.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 "); } -- 2.39.2