From: Vincent van Ravesteijn Date: Wed, 4 Nov 2009 15:30:35 +0000 (+0000) Subject: Add a FIXME to a piece of unreachable code. This dates back to r8251. X-Git-Tag: 2.0.0~5227 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d833a023f64ea4d9933ab8ff7a49a3369ac1c95b;p=features.git Add a FIXME to a piece of unreachable code. This dates back to r8251. 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 --- diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index a3f7550468..8a62776f39 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -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);