From: Alfredo Braunstein Date: Mon, 16 Feb 2004 09:28:34 +0000 (+0000) Subject: selection inside insets y-coord fix X-Git-Tag: 1.6.10~15506 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=61189bef797d8170e2f79b46e6806c2410d27445;p=features.git selection inside insets y-coord fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8434 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index 170f709d0d..6b7c967b85 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2004-02-16 Alfredo Braunstein + + * rowpainter.C (paintSelection): coord fix + 2004-02-15 Georg Baum * Spacing.C: compile fix diff --git a/src/rowpainter.C b/src/rowpainter.C index badb0ff279..a44eb4d169 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -405,7 +405,7 @@ void RowPainter::paintSelection() RowList::iterator endrow = endpit->getRow(cur.selEnd().pos()); int const h = row_.height(); - int const row_y = pit_->y + row_.y_offset(); + int const row_y = text_.yo_ + pit_->y + row_.y_offset(); bool const sel_starts_here = startpit == pit_ && startrow == rit_; bool const sel_ends_here = endpit == pit_ && endrow == rit_;