mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
herbert patch to read 1.2.0 graphics insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4760 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0253a8b7b7
commit
10aefc07a0
@ -1,3 +1,7 @@
|
||||
2002-07-22 Herbert Voss <voss@lyx.org>
|
||||
|
||||
* insetgraphicsParams.[Ch]: support size_type for old docs
|
||||
|
||||
2002-07-22 Herbert Voss <voss@lyx.org>
|
||||
|
||||
* insetgraphics.C:
|
||||
|
@ -279,6 +279,20 @@ bool InsetGraphicsParams::Read(LyXLex & lex, string const & token)
|
||||
} else if (token == "size_kind") {
|
||||
lex.next();
|
||||
size_kind = getSizeKind(lex.getString());
|
||||
// compatibility-stuff 1.20->1.3.0
|
||||
} else if (token == "size_type") {
|
||||
lex.next();
|
||||
switch (lex.getInteger()) {
|
||||
case 0:
|
||||
size_kind = DEFAULT_SIZE;
|
||||
break;
|
||||
case 1:
|
||||
size_kind = WH;
|
||||
break;
|
||||
case 2:
|
||||
size_kind = SCALE;
|
||||
break;
|
||||
}
|
||||
} else if (token == "width") {
|
||||
lex.next();
|
||||
width = LyXLength(lex.getString());
|
||||
|
Loading…
Reference in New Issue
Block a user