From 66627576fba5776ac478b0a5a890b970169a9d03 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 22 Dec 2007 09:25:59 +0000 Subject: [PATCH] fix for cursor movement from text into mathed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22253 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Cursor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 416e666047..674075a8ec 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -419,7 +419,8 @@ void Cursor::getPos(int & x, int & y) const Row const & Cursor::textRow() const { - ParagraphMetrics const & pm = bv().parMetrics(text(), pit()); + CursorSlice const & cs = innerTextSlice(); + ParagraphMetrics const & pm = bv().parMetrics(cs.text(), cs.pit()); BOOST_ASSERT(!pm.rows().empty()); return pm.getRow(pos(), boundary()); } -- 2.39.2