X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiView.cpp;h=be58dc71c066165eefb330cb48ca741d3f2de46a;hb=f8f5a7b28d4c6fb432055911b81d01505696e66b;hp=d45b939466d13423f016a57126e83ea31b171bf9;hpb=f54ef5c1739f18fe2cdd474a9d0e30a96e506797;p=features.git diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index d45b939466..be58dc71c0 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -1066,7 +1066,7 @@ void GuiView::setBuffer(Buffer * newBuffer) GuiWorkArea * wa = workArea(*newBuffer); if (wa == 0) { - updateLabels(*newBuffer->masterBuffer()); + newBuffer->masterBuffer()->updateLabels(); wa = addWorkArea(*newBuffer); } else { //Disconnect the old buffer...there's no new one. @@ -1438,8 +1438,7 @@ void GuiView::openDocument(string const & fname) docstring str2; Buffer * buf = loadDocument(fullname); if (buf) { - updateLabels(*buf); - + buf->updateLabels(); setBuffer(buf); buf->errors("Parse"); str2 = bformat(_("Document %1$s opened."), disp_fn); @@ -1488,7 +1487,7 @@ static bool import(GuiView * lv, FileName const & filename, Buffer * buf = lv->loadDocument(lyxfile); if (!buf) return false; - updateLabels(*buf); + buf->updateLabels(); lv->setBuffer(buf); buf->errors("Parse"); } else {