From: Abdelrazak Younes Date: Thu, 14 Feb 2008 15:29:22 +0000 (+0000) Subject: InsetNote::addToToc(): Stupid Bug fix causing crash on Mac. X-Git-Tag: 1.6.10~6267 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1a4891dec019d9c95c5f80855f119625e98d320e;p=features.git InsetNote::addToToc(): Stupid Bug fix causing crash on Mac. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23004 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp index e07d32e035..babe2bf651 100644 --- a/src/insets/InsetNote.cpp +++ b/src/insets/InsetNote.cpp @@ -225,8 +225,9 @@ void InsetNote::addToToc(TocList & toclist, Buffer const & /*buf*/, ParConstIter ParConstIterator pit = par_const_iterator_begin(*this); Toc & toc = toclist["note"]; - docstring const str = notetranslator_loc().find(params_.type) - + from_ascii(": ") + getNewLabel(str); + docstring str; + str = notetranslator_loc().find(params_.type) + from_ascii(": ") + + getNewLabel(str); toc.push_back(TocItem(pit, 0, str)); }