From: Jürgen Spitzmüller Date: Mon, 21 Jul 2008 08:48:16 +0000 (+0000) Subject: * src/mathed/InsetMathHull.cpp: X-Git-Tag: 1.6.10~3980 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a2a3d8337f62e80dfaad7f9837a456f46e98a39a;p=features.git * 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 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index ded1ef9fc5..c463d850f8 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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()); } }