From 479e0d0f922cacb305b35d4de8301bbf5ce1c9c8 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sun, 10 May 2009 23:03:47 +0000 Subject: [PATCH] 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 --- src/BufferParams.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.2