handle includegraphics*

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9579 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-02-03 14:20:19 +00:00
parent cf5c5ac9b0
commit 76b8d1b25f
2 changed files with 9 additions and 0 deletions

View 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.

View 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();