]> git.lyx.org Git - lyx.git/blobdiff - src/BufferParams.cpp
MSVC does not define WIN32 but _WIN32.
[lyx.git] / src / BufferParams.cpp
index 31a24469e95d58aee0d308776df30a4fd4894995..929489139c49c3ee16222b8f383dd1ac84102353 100644 (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();