]> git.lyx.org Git - features.git/commitdiff
selection inside insets y-coord fix
authorAlfredo Braunstein <abraunst@lyx.org>
Mon, 16 Feb 2004 09:28:34 +0000 (09:28 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Mon, 16 Feb 2004 09:28:34 +0000 (09:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8434 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/rowpainter.C

index 170f709d0dd392360647d5fde929a670e0973150..6b7c967b8579fbf4ead0d4803142bdfd555232cf 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-16  Alfredo Braunstein  <abraunst@lyx.org>
+
+       * rowpainter.C (paintSelection): coord fix
+
 2004-02-15  Georg Baum <Georg.Baum@post.rwth-aachen.de>
 
        * Spacing.C: compile fix
index badb0ff2790a6c196c5bce2faf157dc0c332709a..a44eb4d169fa377bfe6faaf594184f0b8de6962b 100644 (file)
@@ -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_;