mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
* Status.15x: add new bug reported by Peter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15987 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c8429d4bbc
commit
815da6867e
14
Status.15x
14
Status.15x
@ -144,6 +144,20 @@ EDITING
|
||||
|
||||
* Copy/paste using middle mouse button inserts musical notes.
|
||||
|
||||
* open a file; mark with the mouse and scroll; assert will fail:
|
||||
|
||||
Row const & LyXText::getRowNearY(BufferView const & bv, int y, pit_type pit) const
|
||||
{
|
||||
Paragraph const & par = pars_[pit];
|
||||
int yy = bv.coordCache().get(this, pit).y_ - par.ascent();
|
||||
BOOST_ASSERT(!par.rows().empty());
|
||||
RowList::const_iterator rit = par.rows().begin();
|
||||
RowList::const_iterator const rlast = boost::prior(par.rows().end());
|
||||
for (; rit != rlast; yy += rit->height(), ++rit)
|
||||
if (yy + rit->height() > y)
|
||||
break;
|
||||
return *rit;
|
||||
}
|
||||
|
||||
MENUS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user