]> git.lyx.org Git - features.git/commitdiff
* BufferView::workAreaDispatch(): restore anchor when mouse hovering. The problem...
authorAbdelrazak Younes <younes@lyx.org>
Tue, 25 Sep 2007 08:09:11 +0000 (08:09 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 25 Sep 2007 08:09:11 +0000 (08:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20482 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index cd147154b436fc941c3315f2429e1e0282610a44..a753500b22cdd41a45674b059b2a11e142b9ba19 100644 (file)
@@ -1126,6 +1126,9 @@ bool BufferView::workAreaDispatch(FuncRequest const & cmd0)
                        int y2 = lastpm.second->position() + lastpm.second->descent();
                        metrics_info_ = ViewMetricsInfo(firstpm.first, lastpm.first, y1, y2,
                                FullScreenUpdate, buffer_.text().paragraphs().size());
+                       // Reinitialize anchor to first pit.
+                       anchor_ref_ = firstpm.first;
+                       offset_ref_ = -y1;
                }
 
                // This event (moving without mouse click) is not passed further.