mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #8095.
The crash was due to the otherwise innocent looking 07924ac300
. 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.
This commit is contained in:
parent
ef9f83d47e
commit
447e0d0308
@ -113,8 +113,8 @@ void InsetLabel::updateReferences(docstring const & old_label,
|
|||||||
for (; it != end; ++it) {
|
for (; it != end; ++it) {
|
||||||
buffer().undo().recordUndo(it->second);
|
buffer().undo().recordUndo(it->second);
|
||||||
if (it->first->lyxCode() == MATH_REF_CODE) {
|
if (it->first->lyxCode() == MATH_REF_CODE) {
|
||||||
InsetMathHull * mi = it->first->asInsetMath()->asHullInset();
|
InsetMathRef * mi = it->first->asInsetMath()->asRefInset();
|
||||||
mi->asRefInset()->changeTarget(new_label);
|
mi->changeTarget(new_label);
|
||||||
} else {
|
} else {
|
||||||
InsetCommand * ref = it->first->asInsetCommand();
|
InsetCommand * ref = it->first->asInsetCommand();
|
||||||
ref->setParam("reference", new_label);
|
ref->setParam("reference", new_label);
|
||||||
|
Loading…
Reference in New Issue
Block a user