git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23401 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-03-02 19:07:15 +00:00
parent 7cd9525197
commit 2cf1154734

View File

@ -1802,6 +1802,10 @@ void BufferView::updateMetrics()
if (d->inlineCompletionPos.fixIfBroken())
d->inlineCompletionPos = DocIterator();
if (d->anchor_pit_ >= npit)
// The anchor pit must have been deleted...
d->anchor_pit_ = npit - 1;
// Rebreak anchor paragraph.
tm.redoParagraph(d->anchor_pit_);
ParagraphMetrics & anchor_pm = tm.par_metrics_[d->anchor_pit_];