]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
achemso.layout: add a flex inset
[lyx.git] / src / Buffer.cpp
index e6096af747d328d284e3c8d13eb62744cb13c989..847b0292afab5f955f68ce07974cc697c30d462b 100644 (file)
@@ -1675,6 +1675,8 @@ void Buffer::writeLaTeXSource(otexstream & os,
 
        // XeTeX with TeX fonts is only safe with ASCII encoding,
        // See #9740 and FIXME in BufferParams::encoding()
+       // FIXME: when only the current paragraph is shown, this seems to be ignored:
+       //   characters encodable in the current encoding are not converted to ASCII-representation.
        if (!params().useNonTeXFonts && (runparams.flavor == OutputParams::XETEX))
                runparams.encoding = encodings.fromLyXName("ascii");
 
@@ -3435,7 +3437,7 @@ Buffer::References & Buffer::getReferenceCache(docstring const & label)
                return it->second.second;
 
        static InsetLabel const * dummy_il = 0;
-       static References const dummy_refs;
+       static References const dummy_refs = References();
        it = d->ref_cache_.insert(
                make_pair(label, make_pair(dummy_il, dummy_refs))).first;
        return it->second.second;