mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
avoid screen jumps when images get loaded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7634 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f6bd1b3014
commit
b02a5bf656
@ -656,7 +656,6 @@ void BufferView::Pimpl::update()
|
||||
if (bv_->getLyXText()) {
|
||||
// check needed to survive LyX startup
|
||||
bv_->getLyXText()->redoCursor();
|
||||
fitCursor();
|
||||
}
|
||||
screen().redraw(*bv_);
|
||||
}
|
||||
@ -795,10 +794,7 @@ void BufferView::Pimpl::center()
|
||||
|
||||
beforeChange(text);
|
||||
int const half_height = workarea().workHeight() / 2;
|
||||
int new_y = 0;
|
||||
|
||||
if (text->cursor.y() > half_height)
|
||||
new_y = text->cursor.y() - half_height;
|
||||
int new_y = std::max(0, text->cursor.y() - half_height);
|
||||
|
||||
// FIXME: look at this comment again ...
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
2003-09-02 Alfredo Braunstein <abraunst@libero.it>
|
||||
|
||||
* BufferView_pimpl.C (update): remove bogus fitCursor() call
|
||||
|
||||
2003-09-02 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* buffer.C (readFile): new function, take a filename and a
|
||||
|
Loading…
Reference in New Issue
Block a user