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:
Richard Heck 2008-03-15 03:08:59 +00:00
parent 0a93c2d586
commit ebed03d340

View File

@ -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;
}