]> git.lyx.org Git - features.git/commitdiff
Fix http://bugzilla.lyx.org/show_bug.cgi?id=4829
authorAbdelrazak Younes <younes@lyx.org>
Fri, 20 Jun 2008 12:31:03 +0000 (12:31 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 20 Jun 2008 12:31:03 +0000 (12:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25336 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index b4e449addb8e2b1dba5241230053990332070d0f..f433d752e6f7885c2c3c226558bd5267062111a3 100644 (file)
@@ -933,8 +933,13 @@ void GuiWorkArea::showCursor(int x, int y, int h,
        bool l_shape, bool rtl, bool completable)
 {
        if (schedule_redraw_) {
-               buffer_view_->updateMetrics();
+               // This happens when a graphic conversion is finished. As we don't know
+               // the size of the new graphics, it's better the update everything.
+               // We can't use redraw() here because this would trigger a infinite
+               // recursive loop with showCursor().
+               buffer_view_->resize(viewport()->width(), viewport()->height());
                updateScreen();
+               updateScrollbar();
                viewport()->update(QRect(0, 0, viewport()->width(), viewport()->height()));
                schedule_redraw_ = false;
                // Show the cursor immediately after the update.