]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Cmake export tests: Ignore missing glyphs on some tests
[lyx.git] / src / TextMetrics.cpp
index 1f0c62b725b86230d9cc88622e6f4042d1e6195b..f38c78d3ea7d98e6799d17a41898eafe8bba1049 100644 (file)
@@ -1379,7 +1379,9 @@ Inset * TextMetrics::editXY(Cursor & cur, int x, int y,
 
        // Try to descend recursively inside the inset.
        Inset * edited = inset->editXY(cur, x, y);
-       if (edited == inset && cur.pos() == it->pos) {
+       // FIXME: it is not clear that the test on position is needed
+       // Remove it if/when semantics of editXY is clarified
+       if (cur.text() == text_ && cur.pos() == it->pos) {
                // non-editable inset, set cursor after the inset if x is
                // nearer to that position (bug 9628)
                bool bound = false; // is modified by getPosNearX