mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
3b368687f9
commit
66627576fb
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user