]> git.lyx.org Git - lyx.git/commitdiff
Add comment about r27991.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 5 Jan 2009 09:56:37 +0000 (09:56 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 5 Jan 2009 09:56:37 +0000 (09:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27992 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index a5b5bf942edfe0487cb82890e657269cc8682a38..3a3f88bcf8b9affedcd23bd6726ba995ec6ee485 100644 (file)
@@ -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();
 }