From: Vincent van Ravesteijn Date: Wed, 10 Mar 2010 14:46:28 +0000 (+0000) Subject: Fix bug #6488: Avoid a null pointer when accessing documentBufferView when there... X-Git-Tag: 2.0.0~3848 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f23a2ccb58ca742fa2a6b61d1628a5068eab0a5c;p=features.git 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 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index a2a5eaf746..89e439e029 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1237,9 +1237,9 @@ void GuiView::disconnectBufferView() void GuiView::errors(string const & error_type, bool from_master) { - ErrorList & el = from_master ? - documentBufferView()->buffer().masterBuffer()->errorList(error_type) - : documentBufferView()->buffer().errorList(error_type); + ErrorList & el = from_master ? + currentBufferView()->buffer().masterBuffer()->errorList(error_type) + : currentBufferView()->buffer().errorList(error_type); string data = error_type; if (from_master) data = "from_master|" + error_type;