]> git.lyx.org Git - features.git/commitdiff
handle includegraphics*
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 3 Feb 2005 14:20:19 +0000 (14:20 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 3 Feb 2005 14:20:19 +0000 (14:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9579 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/ChangeLog
src/tex2lyx/text.C

index 78b28a935be4746abef7ba63f87fa9914ba60684..3aed7b96cb087a63fee8dc4f691e5fc7cbe0ba6f 100644 (file)
@@ -1,3 +1,7 @@
+2005-02-03  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * text.C (parse_text): handle \includegraphics*
+
 2005-02-02  Angus Leeming  <leeming@lyx.org>
 
        * Makefile.am: remove -lz library from the linker call.
index 9b2d8096f8d127655461e8e295dfd7c373e58e6f..312ddbf99b56976c536fac83aa24b62897bdeb23 100644 (file)
@@ -1168,7 +1168,12 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                }
 
                else if (t.cs() == "includegraphics") {
+                       bool const clip = p.next_token().asInput() == "*";
+                       if (clip)
+                               p.get_token();
                        map<string, string> opts = split_map(p.getArg('[', ']'));
+                       if (clip)
+                               opts["clip"] = string();
                        string name = subst(p.verbatim_item(), "\\lyxdot ", ".");
 
                        string const path = getMasterFilePath();