]> git.lyx.org Git - features.git/commitdiff
lineno: dump lineno buffer token if false/empty as well.
authorPavel Sanda <sanda@lyx.org>
Fri, 24 May 2019 13:50:10 +0000 (15:50 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:30 +0000 (15:48 +0200)
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

index dd7d950f547753292716a8c28911fff1c949dce5..dbe5d7fc279b0b6d902297185815aedbb08e3fec 100644 (file)
@@ -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';