]> git.lyx.org Git - features.git/blobdiff - src/insets/insettext.C
Add code to check shortcuts in menu files
[features.git] / src / insets / insettext.C
index 26039d185f21ca8448dd18e8594f090002d928b8..9122719fe0f8caee5def4ae4fc84dd8a18ca5fe8 100644 (file)
@@ -595,9 +595,8 @@ void InsetText::InsetButtonPress(BufferView * bv, int x, int y, int button)
     no_selection = false;
 
     int tmp_x = x - drawTextXOffset;
-    int tmp_y = y + insetAscent;
-    Inset * inset = bv->checkInsetHit(TEXT(bv), tmp_x, tmp_y-TEXT(bv)->first,
-                                     button);
+    int tmp_y = y + insetAscent - TEXT(bv)->first;
+    Inset * inset = bv->checkInsetHit(TEXT(bv), tmp_x, tmp_y, button);
 
     HideInsetCursor(bv);
     if (the_locking_inset) {