mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
Fix bug #6488: Avoid a null pointer when accessing documentBufferView when there is none.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33692 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b9f89e8eb6
commit
f23a2ccb58
@ -1237,9 +1237,9 @@ void GuiView::disconnectBufferView()
|
|||||||
|
|
||||||
void GuiView::errors(string const & error_type, bool from_master)
|
void GuiView::errors(string const & error_type, bool from_master)
|
||||||
{
|
{
|
||||||
ErrorList & el = from_master ?
|
ErrorList & el = from_master ?
|
||||||
documentBufferView()->buffer().masterBuffer()->errorList(error_type)
|
currentBufferView()->buffer().masterBuffer()->errorList(error_type)
|
||||||
: documentBufferView()->buffer().errorList(error_type);
|
: currentBufferView()->buffer().errorList(error_type);
|
||||||
string data = error_type;
|
string data = error_type;
|
||||||
if (from_master)
|
if (from_master)
|
||||||
data = "from_master|" + error_type;
|
data = "from_master|" + error_type;
|
||||||
|
Loading…
Reference in New Issue
Block a user