]> git.lyx.org Git - features.git/commitdiff
make quoted filenames work when " is active
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 21 Jun 2005 09:01:40 +0000 (09:01 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 21 Jun 2005 09:01:40 +0000 (09:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10094 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetgraphics.C

index 7bde2258ffdda09836d62236d8bd4a23a58488b5..ca7960c82d34571c48ff8126ee327bca670b19d7 100644 (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
index 3b6e2b41462bac87a5071c47ae99bd4f41762829..b91a4e134e3761632d54e3c76baeca5259216742 100644 (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 ");
 }