]> git.lyx.org Git - lyx.git/commit
Fix bug 3427:
authorAbdelrazak Younes <younes@lyx.org>
Wed, 22 Aug 2007 14:14:52 +0000 (14:14 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 22 Aug 2007 14:14:52 +0000 (14:14 +0000)
commit5203c56db4dcf190280cd46b5e20358e7c226665
tree2d8453c4345126d164dd0427633206dc33fc0707
parent8202f631603cb748bbf9cf0a7731c26c21bc937b
Fix bug 3427:
http://bugzilla.lyx.org/show_bug.cgi?id=3427

The problem was that offset_ref_ was calculated based on an empty metrics. The solution is delay the calculation up until the next metrics update.

* BufferView:
- center(): now just set the anchor_ref and program a new screen recentering.
- updateOffsetRef(): update the offset_ref_

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19721 a592a061-630c-0410-9148-cb99ea01b6c8
src/BufferView.cpp
src/BufferView.h