]> git.lyx.org Git - lyx.git/commitdiff
* src/text.C
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 28 Jan 2007 19:17:59 +0000 (19:17 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 28 Jan 2007 19:17:59 +0000 (19:17 +0000)
(LyXText::currentState): Unicode debugging aid: Display UCS4 code
point in devel builds

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

src/text.C

index 6b5d64e363b920ebc64cf2194c1be9a0c0006609..a44447850a15fcec3b594a7889080ea9f9f50435 100644 (file)
@@ -1711,6 +1711,9 @@ docstring LyXText::currentState(LCursor & cur)
        os << _(", Paragraph: ") << cur.pit();
        os << _(", Id: ") << par.id();
        os << _(", Position: ") << cur.pos();
+       // Force output of code point, not character
+       size_t const c = par.getChar(cur.pos());
+       os << _(", Char: 0x") << std::hex << c;
        os << _(", Boundary: ") << cur.boundary();
 //     Row & row = cur.textRow();
 //     os << bformat(_(", Row b:%1$d e:%2$d"), row.pos(), row.endpos());