Fix copy&paste bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16111 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-11-29 21:39:06 +00:00
parent 1000b8d218
commit 1116115055

View File

@ -945,7 +945,7 @@ pit_type LyXText::getPitNearY(BufferView & bv, int y)
pit = last->first + 1;
// and we are not at the last paragraph in the inset.
if (pit == pars_.size())
return it->first;
return last->first;
// then this is the paragraph we are looking for.
// rebreak it and update the CoordCache.
redoParagraph(bv, pit);