mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
* GuiView.cpp (reloadBuffer):
- adjust r31510 to prevent null pointer. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31513 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
42b2fa2acf
commit
73a4394e97
@ -2253,11 +2253,11 @@ void GuiView::reloadBuffer()
|
||||
buf = loadDocument(filename);
|
||||
docstring const disp_fn = makeDisplayPath(filename.absFilename());
|
||||
docstring str;
|
||||
if (buf) {
|
||||
// re-allocate master if necessary
|
||||
if (is_child && theBufferList().isLoaded(master)
|
||||
&& buf->masterBuffer() != master)
|
||||
buf->setParent(master);
|
||||
if (buf) {
|
||||
buf->updateLabels();
|
||||
setBuffer(buf);
|
||||
buf->errors("Parse");
|
||||
|
Loading…
Reference in New Issue
Block a user