From 0c009163335d05efdc452deae5370d40e140dc50 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 22 Aug 2007 07:51:39 +0000 Subject: [PATCH] Fix crash on first load with mouse wheel: this was because the scrollbar was not updated. The solution is just to force a redraw in LyXView::loadLyXFile(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19714 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/LyXView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/LyXView.cpp b/src/frontends/LyXView.cpp index 71b8471d49..fe63103a99 100644 --- a/src/frontends/LyXView.cpp +++ b/src/frontends/LyXView.cpp @@ -164,6 +164,8 @@ Buffer * LyXView::loadLyXFile(FileName const & filename, bool tolastfiles) } } + wa->redraw(); + busy(false); return newBuffer; }