mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Fix crash noted by Pavel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23755 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0a93c2d586
commit
ebed03d340
@ -2069,8 +2069,10 @@ void LyXFunc::open(string const & fname)
|
||||
if (!doesFileExist(fullname)) {
|
||||
// the user specifically chose this name. Believe him.
|
||||
Buffer * const b = newFile(filename, string(), true);
|
||||
if (b)
|
||||
if (b) {
|
||||
updateLabels(*b);
|
||||
lyx_view_->setBuffer(b);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user