]> git.lyx.org Git - features.git/commitdiff
Fix Cut&Paste bug.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 23 Sep 2007 08:59:50 +0000 (08:59 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 23 Sep 2007 08:59:50 +0000 (08:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20445 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.cpp

index 6cf72746b5cd81ba213e8989f8f75de5e2621288..08b74fc862d96ca28e23e57d38e90de01db6df27 100644 (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)