commit bea2756472918c7da42f40aa1ac851cd330d626b Author: Pavel Sanda <sa...@lyx.org> Date: Fri May 24 15:50:10 2019 +0200
lineno: dump lineno buffer token if false/empty as well. Oversmarted myself. Wanted to save .lyx header from overbloating but dialog's UI depends on those tokens when disabling the option in UI. --- src/BufferParams.cpp | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index dd7d950..dbe5d7f 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -1326,12 +1326,10 @@ 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';