]> git.lyx.org Git - features.git/commitdiff
Add a FIXME to a piece of unreachable code. This dates back to r8251.
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 4 Nov 2009 15:30:35 +0000 (15:30 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 4 Nov 2009 15:30:35 +0000 (15:30 +0000)
see http://www.lyx.org/trac/changeset/8251.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31858 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.cpp

index a3f7550468dda2cae6c7d654d16c6aa6f2c0a426..8a62776f39d2bf61758c967a4f6d6df21ef54025 100644 (file)
@@ -1655,6 +1655,8 @@ int TextMetrics::cursorX(CursorSlice const & sl,
        else if (ppos >= end)
                cursor_vpos = text_->isRTL(par) ? row_pos : end;
        else if (ppos > row_pos && ppos >= end)
+               //FIXME: this code is never reached!
+               //       (see http://www.lyx.org/trac/changeset/8251)
                // Place cursor after char at (logical) position pos - 1
                cursor_vpos = (bidi.level(ppos - 1) % 2 == 0)
                        ? bidi.log2vis(ppos - 1) + 1 : bidi.log2vis(ppos - 1);