Next attack on the background color. Thanks Juergen.

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg151267.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29723 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-05-18 10:53:02 +00:00
parent 06cdeb86f5
commit 8e15c27a9c
2 changed files with 3 additions and 1 deletions

View File

@ -525,6 +525,7 @@ int Buffer::readHeader(Lexer & lex)
params().clearRemovedModules();
params().pdfoptions().clear();
params().indiceslist().clear();
params().backgroundcolor = lyx::rgbFromHexName("#ffffff");
for (int i = 0; i < 4; ++i) {
params().user_defined_bullet(i) = ITEMIZE_DEFAULTS[i];

View File

@ -830,8 +830,9 @@ void BufferParams::writeFile(ostream & os) const
<< "\n\\use_bibtopic " << convert<string>(use_bibtopic)
<< "\n\\use_indices " << convert<string>(use_indices)
<< "\n\\paperorientation " << string_orientation[orientation]
<< "\n\\backgroundcolor " << lyx::X11hexname(backgroundcolor)
<< '\n';
if (backgroundcolor != lyx::rgbFromHexName("#ffffff"))
os << "\\backgroundcolor " << lyx::X11hexname(backgroundcolor) << '\n';
BranchList::const_iterator it = branchlist().begin();
BranchList::const_iterator end = branchlist().end();