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();