From bd97d99c9a2939894d596275799e897db3620374 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 5 Jan 2009 09:56:37 +0000 Subject: [PATCH] Add comment about r27991. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27992 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index a5b5bf942e..3a3f88bcf8 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1623,8 +1623,11 @@ void GuiView::newDocument(string const & filename, bool from_template) if (b) setBuffer(b); - // Ensure the cursor is correctly positionned on screen. + + // If no new document could be created, it is unsure + // whether there is a valid BufferView. if (view()) + // Ensure the cursor is correctly positioned on screen. view()->showCursor(); } -- 2.39.2