Set the size of an image displayed in LyX correctly, when loading an

old-style figinset. (From Herbert.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3845 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-03-26 18:20:11 +00:00
parent 04e819e4fd
commit c3144da934
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-03-26 Herbert Voss <voss@lyx.org>
* insetgraphics.C (figinsetRead): set the right lyxview
2002-03-26 Angus Leeming <a.leeming@ic.ac.uk>
* insetgraphicsParams.C (latexify): use \textbackslash in preference to

View File

@ -486,7 +486,8 @@ void InsetGraphics::readFigInset(LyXLex & lex)
if (lex.next())
params_.lyxwidth = LyXLength(lex.getString()+"pt");
if (lex.next())
params_.lyxheight = LyXLength(lex.getString()+"pt");
params_.lyxheight = LyXLength(lex.getString()+"pt");
params_.lyxsize_type = InsetGraphicsParams::WH;
} else if (token == "flags") {
if (lex.next())
switch (lex.getInteger()) {