Do not write an empty default_otf_view_format.

Fixes: #9100.
This commit is contained in:
Juergen Spitzmueller 2014-04-28 14:59:03 +02:00
parent ff507c1a33
commit 28705e8933

View File

@ -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)