(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> 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; string const pt = params_.type;
int i = 0; int i = 0;
if (pt == "Comment") os << "%\n\\begin{comment}\n"; // remember to validate if (pt == "Comment")
if (pt == "Greyedout") os << "%\n\\textcolor[gray]{0.8}{"; os << "%\n\\begin{comment}\n"; // remember to validate
if (pt != "Note") { else if (pt == "Greyedout")
os << "%\n\\textcolor[gray]{0.8}{";
if (pt != "Note")
i = inset.latex(buf, os, runparams); i = inset.latex(buf, os, runparams);
}
if (pt == "Comment") { if (pt == "Comment") {
os << "%\n\\end{comment}\n"; os << "%\n\\end{comment}\n";
i += 3; i += 3;
} } else if (pt == "Greyedout") {
if (pt == "Greyedout") { os << "\\normalcolor%\n}";
os << "%\n}";
i += 2; i += 2;
} }
return i; return i;