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
This commit is contained in:
Abdelrazak Younes 2007-12-22 09:25:59 +00:00
parent 3b368687f9
commit 66627576fb

View File

@ -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());
}