From: Pavel Sanda Date: Sun, 10 May 2009 23:03:47 +0000 (+0000) Subject: Don't clutter the header needlessly X-Git-Tag: 2.0.0~6616 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=479e0d0f922cacb305b35d4de8301bbf5ce1c9c8;p=features.git Don't clutter the header needlessly http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150918.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29619 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 31a24469e9..929489139c 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -830,8 +830,9 @@ void BufferParams::writeFile(ostream & os) const << "\n\\use_bibtopic " << convert(use_bibtopic) << "\n\\use_indices " << convert(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();