]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLabel.cpp
tex2lyx/text.cpp: fix typos
[lyx.git] / src / insets / InsetLabel.cpp
index 7bff3d7c6e82ba722223127cf44e9a1083709cfc..c483f9488374731b21e4bf4e36c0bd1590290011 100644 (file)
@@ -113,8 +113,8 @@ void InsetLabel::updateReferences(docstring const & old_label,
        for (; it != end; ++it) {
                buffer().undo().recordUndo(it->second);
                if (it->first->lyxCode() == MATH_REF_CODE) {
-                       InsetMathHull * mi = it->first->asInsetMath()->asHullInset();
-                       mi->asRefInset()->changeTarget(new_label);
+                       InsetMathRef * mi = it->first->asInsetMath()->asRefInset();
+                       mi->changeTarget(new_label);
                } else {
                        InsetCommand * ref = it->first->asInsetCommand();
                        ref->setParam("reference", new_label);