if (ref->getParam("reference") == oldname)
ref->setParam("reference", newname);
} else if (itt->lyxCode() == MATH_REF_CODE) {
- InsetMathHull * mi = itt->asInsetMath()->asHullInset();
+ InsetMathRef * mi = itt->asInsetMath()->asRefInset();
// this is necessary to prevent an uninitialized
// buffer when the RefInset is in a MathBox.
// FIXME audit setBuffer calls
mi->setBuffer(const_cast<Buffer &>(buffer));
- if (mi->asRefInset()->getTarget() == oldname)
- mi->asRefInset()->changeTarget(newname);
+ if (mi->getTarget() == oldname)
+ mi->changeTarget(newname);
}
}
}
if (ref.getParam("reference") == oldname)
ref.setParam("reference", newname);
} else if (itt->lyxCode() == MATH_REF_CODE) {
- InsetMathHull & mi =
- static_cast<InsetMathHull &>(*itt);
+ InsetMathRef * mi = itt->asInsetMath()->asRefInset();
// this is necessary to prevent an uninitialized
// buffer when the RefInset is in a MathBox.
// FIXME audit setBuffer calls
- mi.setBuffer(const_cast<Buffer &>(buffer));
- if (mi.asRefInset()->getTarget() == oldname)
- mi.asRefInset()->changeTarget(newname);
+ mi->setBuffer(const_cast<Buffer &>(buffer));
+ if (mi->getTarget() == oldname)
+ mi->changeTarget(newname);
}
}
break;
* USER INTERFACE
-- Fixed crash when modifying equation label and there are references to that
- label in math (bug 8095).
+- Fixed crash when modifying or pasting an equation label and there
+ are references to that label in math (bug 8095).
- Do not disable View/Update Other Formats button when "Use non-TeX fonts"
is active (bug 8069).