Merge branch 'master' of git.lyx.org:lyx

This commit is contained in:
Uwe Stöhr 2014-04-28 22:57:23 +02:00
commit 40aedb5146
2 changed files with 4 additions and 3 deletions

View File

@ -911,7 +911,7 @@ def revert_cell_rotation(document):
document.body[i] = rgx.sub('', document.body[i])
elif value == "90":
rgx = re.compile(r' rotate="[^"]+?"')
document.body[i] = rgx.sub('rotate="true"', document.body[i])
document.body[i] = rgx.sub(' rotate="true"', document.body[i])
else:
rgx = re.compile(r' rotate="[^"]+?"')
load_rotating = True

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)