mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
Fix crash when no new document can be created.
This occurs frequently when the temporary directory cannot be created because it already exists. The temporary directory can exist as a result of previous crashes of LyX. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27991 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d57b6f315d
commit
cc3b9c61cf
@ -1624,6 +1624,7 @@ void GuiView::newDocument(string const & filename, bool from_template)
|
|||||||
if (b)
|
if (b)
|
||||||
setBuffer(b);
|
setBuffer(b);
|
||||||
// Ensure the cursor is correctly positionned on screen.
|
// Ensure the cursor is correctly positionned on screen.
|
||||||
|
if (view())
|
||||||
view()->showCursor();
|
view()->showCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user