X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXRC.cpp;h=afa30007b139197dfec8cc9f1daf7fe3ad4fb0df;hb=93e7ab1f3e0535f15da73b0dc2fe71ee4e1b0281;hp=8416cd3576639c5041e648852ea0b6a93070984f;hpb=80f855581c5e553e7be7f7b94679e14e69b9726d;p=features.git diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 8416cd3576..afa30007b1 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -2729,8 +2729,9 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c break; // fall through case RC_DEFAULT_VIEW_FORMAT: - if (ignore_system_lyxrc || - default_view_format != system_lyxrc.default_view_format) { + if ((ignore_system_lyxrc || + default_view_format != system_lyxrc.default_view_format) + && !default_view_format.empty()) { os << "\\default_view_format " << default_view_format << '\n'; } if (tag != RC_LAST)