* src/mathed/InsetMathHull.cpp:

- update labels cache after a label has been erased (bug 4929).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25757 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-07-21 08:48:16 +00:00
parent dd8699674c
commit a2a3d8337f

View File

@ -489,6 +489,9 @@ void InsetMathHull::label(row_type row, docstring const & label)
if (label.empty()) { if (label.empty()) {
delete label_[row]; delete label_[row];
label_[row] = dummy_pointer; label_[row] = dummy_pointer;
// We need an update of the Buffer reference cache.
// This is achieved by updateLabels().
lyx::updateLabels(buffer());
} else } else
label_[row]->updateCommand(label); label_[row]->updateCommand(label);
return; return;
@ -507,6 +510,9 @@ void InsetMathHull::numbered(row_type row, bool num)
if (nonum_[row] && label_[row]) { if (nonum_[row] && label_[row]) {
delete label_[row]; delete label_[row];
label_[row] = 0; label_[row] = 0;
// We need an update of the Buffer reference cache.
// This is achieved by updateLabels().
lyx::updateLabels(buffer());
} }
} }