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:
Alfredo Braunstein 2003-09-02 11:10:19 +00:00
parent f6bd1b3014
commit b02a5bf656
2 changed files with 5 additions and 5 deletions

View File

@ -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 ...

View File

@ -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