From 76b8d1b25f7de8b94b82de0884beb05e36caaaa4 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 3 Feb 2005 14:20:19 +0000 Subject: [PATCH] handle includegraphics* git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9579 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/ChangeLog | 4 ++++ src/tex2lyx/text.C | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/tex2lyx/ChangeLog b/src/tex2lyx/ChangeLog index 78b28a935b..3aed7b96cb 100644 --- a/src/tex2lyx/ChangeLog +++ b/src/tex2lyx/ChangeLog @@ -1,3 +1,7 @@ +2005-02-03 Georg Baum + + * text.C (parse_text): handle \includegraphics* + 2005-02-02 Angus Leeming * Makefile.am: remove -lz library from the linker call. diff --git a/src/tex2lyx/text.C b/src/tex2lyx/text.C index 9b2d8096f8..312ddbf99b 100644 --- a/src/tex2lyx/text.C +++ b/src/tex2lyx/text.C @@ -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 opts = split_map(p.getArg('[', ']')); + if (clip) + opts["clip"] = string(); string name = subst(p.verbatim_item(), "\\lyxdot ", "."); string const path = getMasterFilePath(); -- 2.39.5