From 1116115055ae80319e7f6b7b811019dbba35645d Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 29 Nov 2006 21:39:06 +0000 Subject: [PATCH] Fix copy&paste bug git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16111 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text2.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text2.C b/src/text2.C index d1399ebd91..cfd6b11b41 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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); -- 2.39.2