* 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:
Michael Schmitt 2006-11-19 16:59:47 +00:00
parent c8429d4bbc
commit 815da6867e

View File

@ -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