From ebed03d340ef93d49c82b8c16f4c149c9f8238dd Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 15 Mar 2008 03:08:59 +0000 Subject: [PATCH] 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 --- src/LyXFunc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index 1157a467aa..9d094d0ca0 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -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; }