From 61189bef797d8170e2f79b46e6806c2410d27445 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Mon, 16 Feb 2004 09:28:34 +0000 Subject: [PATCH] selection inside insets y-coord fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8434 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/rowpainter.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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_; -- 2.39.2