]> git.lyx.org Git - features.git/commitdiff
Remove obsolete comment
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Dec 2013 13:14:32 +0000 (14:14 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Dec 2013 13:14:32 +0000 (14:14 +0100)
It is not possible to make editXY const because of checkInsetHit, getPitNearY and getPitandRowNearY that modify the TextMetrics object.

src/TextMetrics.cpp

index 4e70dc0b82091b5b207a45e49d8f3c43d648796d..618c893d876b9b68151b3c5738a2d61963fb011b 100644 (file)
@@ -1512,10 +1512,6 @@ Inset * TextMetrics::editXY(Cursor & cur, int x, int y,
        Inset * inset = checkInsetHit(x, yy);
        //lyxerr << "inset " << inset << " hit at x: " << x << " y: " << y << endl;
        if (!inset) {
-               // Either we deconst editXY or better we move current_font
-               // and real_current_font to Cursor
-               // FIXME: what is needed now that current_font and real_current_font
-               // are transferred?
                cur.setCurrentFont();
                return 0;
        }