mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
* 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:
parent
dd8699674c
commit
a2a3d8337f
@ -489,6 +489,9 @@ void InsetMathHull::label(row_type row, docstring const & label)
|
||||
if (label.empty()) {
|
||||
delete label_[row];
|
||||
label_[row] = dummy_pointer;
|
||||
// We need an update of the Buffer reference cache.
|
||||
// This is achieved by updateLabels().
|
||||
lyx::updateLabels(buffer());
|
||||
} else
|
||||
label_[row]->updateCommand(label);
|
||||
return;
|
||||
@ -507,6 +510,9 @@ void InsetMathHull::numbered(row_type row, bool num)
|
||||
if (nonum_[row] && label_[row]) {
|
||||
delete label_[row];
|
||||
label_[row] = 0;
|
||||
// We need an update of the Buffer reference cache.
|
||||
// This is achieved by updateLabels().
|
||||
lyx::updateLabels(buffer());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user