]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Do not crash when entering math in ct mode with merge dialog open.
[lyx.git] / src / Paragraph.cpp
index fb522391fbb7e9dd108a9a6ebd22d3cd9af5074b..d32c0be2f0ba95d1ddc315f10f4a4ef741c93d11 100644 (file)
@@ -1451,7 +1451,7 @@ void Paragraph::Private::validate(LaTeXFeatures & features) const
                bool const is_command = layout_->latextype == LATEX_COMMAND;
                Buffer const & buf = inset_owner_->buffer();
                BufferParams const & bp = features.runparams().is_child
-                       ? buf.masterBuffer()->params() : buf.params();
+                       ? buf.masterParams() : buf.params();
                Font f;
                TexRow texrow;
                // Using a string stream here circumvents the encoding
@@ -3581,8 +3581,7 @@ int Paragraph::fixBiblio(Buffer const & buffer)
                // these, which there should be.
                // FIXME: why does it make sense to do that rather
                // than keep the first? (JMarc)
-               Inset * inset = d->insetlist_.release(bibitem_pos);
-               eraseChar(bibitem_pos, track_changes);
+               Inset * inset = releaseInset(bibitem_pos);
                d->insetlist_.begin()->inset = inset;
                return -bibitem_pos;
        }