Fix Cut&Paste bug.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20445 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-09-23 08:59:50 +00:00
parent 731ae937ea
commit 0dc4a1fa97

View File

@ -1436,7 +1436,8 @@ Inset * TextMetrics::checkInsetHit(int x, int y)
<< " yo: " << p.y_ - dim.asc << "..." << p.y_ + dim.des
<< endl;
if (x >= p.x_ && p.x_ + dim.wid
if (x >= p.x_
&& x <= p.x_ + dim.wid
&& y >= p.y_ - dim.asc
&& y <= p.y_ + dim.des) {
LYXERR(Debug::DEBUG)