Whitespace ONLY!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4101 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-05-01 10:23:51 +00:00
parent 5431577846
commit c72a67965a
3 changed files with 55 additions and 43 deletions

View File

@ -1,3 +1,7 @@
2002-05-01 Angus Leeming <a.leeming@ic.ac.uk>
* InsetgraphicsParams.[Ch]: whitespace.
2002-04-28 Dekel Tsur <dekelts@tau.ac.il>
* insetfloatlist.C (getScreenLabel): Fix crash in the case where

View File

@ -243,11 +243,15 @@ bool InsetGraphicsParams::Read(LyXLex & lex, string const& token)
} else if (token == "size_type") {
lex.next();
switch (lex.getInteger()) {
case 0 : size_type = DEFAULT_SIZE;
case 0:
size_type = DEFAULT_SIZE;
break;
case 1 : size_type = WH;
case 1:
size_type = WH;
break;
case 2:
size_type = SCALE;
break;
case 2 : size_type = SCALE;
}
} else if (token == "width") {
lex.next();
@ -273,11 +277,15 @@ bool InsetGraphicsParams::Read(LyXLex & lex, string const& token)
} else if (token == "lyxsize_type") {
lex.next();
switch (lex.getInteger()) {
case 0 : lyxsize_type = DEFAULT_SIZE;
case 0:
lyxsize_type = DEFAULT_SIZE;
break;
case 1 : lyxsize_type = WH;
case 1:
lyxsize_type = WH;
break;
case 2:
lyxsize_type = SCALE;
break;
case 2 : lyxsize_type = SCALE;
}
} else if (token == "lyxwidth") {
lex.next();

View File

@ -73,9 +73,9 @@ struct InsetGraphicsParams
string special;
/// How to display the image inside lyx
DisplayType display;
/// the size for the view inside lyx
/// Typ of the LyXView, same as for latex
sizeType lyxsize_type;
/// the size for the view inside lyx
LyXLength lyxwidth;
///
LyXLength lyxheight;