(Martin Vermeer): fix greyout and layout foul-ups.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7326 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-07-21 08:08:04 +00:00
parent 42942c285a
commit 26f64808a2
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,6 @@
2003-07-21 Martin Vermeer <martin.vermeer@hut.fi>
* insetnote.C: fixed greyout and conditionals layout foul-ups.
2003-07-18 André Pönitz <poenitz@gmx.net>

View File

@ -149,17 +149,19 @@ int InsetNote::latex(Buffer const * buf, ostream & os,
string const pt = params_.type;
int i = 0;
if (pt == "Comment") os << "%\n\\begin{comment}\n"; // remember to validate
if (pt == "Greyedout") os << "%\n\\textcolor[gray]{0.8}{";
if (pt != "Note") {
if (pt == "Comment")
os << "%\n\\begin{comment}\n"; // remember to validate
else if (pt == "Greyedout")
os << "%\n\\textcolor[gray]{0.8}{";
if (pt != "Note")
i = inset.latex(buf, os, runparams);
}
if (pt == "Comment") {
os << "%\n\\end{comment}\n";
i += 3;
}
if (pt == "Greyedout") {
os << "%\n}";
} else if (pt == "Greyedout") {
os << "\\normalcolor%\n}";
i += 2;
}
return i;