(Herbert): fix compatibility read of InsetFigure.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3951 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-04-08 17:26:33 +00:00
parent c42560dbe3
commit 2099c3cc2b
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-04-07 Herbert Voss <voss@perce.de>
* insetgraphic.C (readFigInset): fix bug with subcaption and
rotating
2002-04-08 Herbert Voss <voss@lyx.org>
* insetgraphicsparam.C: forgot special option and delete old

View File

@ -474,14 +474,14 @@ void InsetGraphics::readFigInset(LyXLex & lex)
} else if (token == "subcaption") {
if (lex.eatLine())
params_.subcaptionText = lex.getString();
params_.subcaption = true;
} else if (token == "label") {
if (lex.next());
// kept for backwards compability. Delete in 0.13.x
} else if (token == "angle") {
if (lex.next())
if (lex.next()) {
params_.rotate = true;
params_.rotateAngle = lex.getFloat();
}
} else if (token == "size") {
if (lex.next())
params_.lyxwidth = LyXLength(lex.getString()+"pt");