From 7f3c7e0ce96b95461c52ba694f4e3ae492a04155 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Fri, 24 May 2019 15:50:10 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index dd7d950f54..dbe5d7fc27 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(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'; -- 2.39.5