]> git.lyx.org Git - features.git/blobdiff - src/BufferParams.cpp
Fix lineno options param
[features.git] / src / BufferParams.cpp
index dd7d950f547753292716a8c28911fff1c949dce5..3d9f71727559ca294d9c4969ddebf6662451c540 100644 (file)
@@ -1326,12 +1326,11 @@ void BufferParams::writeFile(ostream & os, Buffer const * buf) const
           << "\n\\justification " << convert<string>(justification)
           << "\n\\use_refstyle " << use_refstyle
           << "\n\\use_minted " << use_minted
+          << "\n\\use_lineno " << use_lineno
           << '\n';
 
-       if (use_lineno)
-               os << "\\use_lineno " << use_lineno << '\n';
        if (!lineno_opts.empty())
-                os << "\\lineno_options " << lineno_opts << '\n';
+               os << "\\lineno_options " << lineno_opts << '\n';
 
        if (isbackgroundcolor == true)
                os << "\\backgroundcolor " << lyx::X11hexname(backgroundcolor) << '\n';