The crash was due to the otherwise innocent looking
07924ac300f68e. The cast
Vincent replaced was already wrong---it seems to have been a thinko in
7bbd67eb2679---but it worked kind of by accident before. Now it crashes.
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);
* USER INTERFACE
+- Fixed crash when modifying 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).