From: Abdelrazak Younes Date: Mon, 12 Mar 2007 11:30:48 +0000 (+0000) Subject: * LyXFunc::menuNew(): X-Git-Tag: 1.6.10~10619 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d1d4e6d48f31995a1c97a0b62cabdb65443aa5db;p=features.git * LyXFunc::menuNew(): - bug correction: don't forget to call updateLabels() to initialize the different backends. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17415 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/lyxfunc.C b/src/lyxfunc.C index ff526d5968..ed0553518a 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1884,8 +1884,10 @@ void LyXFunc::menuNew(string const & name, bool fromTemplate) } Buffer * const b = newFile(filename, templname, !name.empty()); - if (b) + if (b) { + updateLabels(*b); lyx_view_->setBuffer(b); + } }