From 28705e893337f049b4afe7693fd60909b901b13e Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 28 Apr 2014 14:59:03 +0200 Subject: [PATCH] Do not write an empty default_otf_view_format. Fixes: #9100. --- src/LyXRC.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 80b85141d2..c95cacd606 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -2829,8 +2829,9 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c break; } case RC_DEFAULT_OTF_VIEW_FORMAT: - if (ignore_system_lyxrc || - default_otf_view_format != system_lyxrc.default_otf_view_format) { + if ((ignore_system_lyxrc || + default_otf_view_format != system_lyxrc.default_otf_view_format) + && !default_otf_view_format.empty()) { os << "\\default_otf_view_format " << default_otf_view_format << '\n'; } if (tag != RC_LAST)