mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Do not write \default_view_format if it is empty.
This commit is contained in:
parent
80f855581c
commit
93e7ab1f3e
@ -2729,8 +2729,9 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
|
|||||||
break;
|
break;
|
||||||
// fall through
|
// fall through
|
||||||
case RC_DEFAULT_VIEW_FORMAT:
|
case RC_DEFAULT_VIEW_FORMAT:
|
||||||
if (ignore_system_lyxrc ||
|
if ((ignore_system_lyxrc ||
|
||||||
default_view_format != system_lyxrc.default_view_format) {
|
default_view_format != system_lyxrc.default_view_format)
|
||||||
|
&& !default_view_format.empty()) {
|
||||||
os << "\\default_view_format " << default_view_format << '\n';
|
os << "\\default_view_format " << default_view_format << '\n';
|
||||||
}
|
}
|
||||||
if (tag != RC_LAST)
|
if (tag != RC_LAST)
|
||||||
|
Loading…
Reference in New Issue
Block a user