]> git.lyx.org Git - features.git/commitdiff
InsetNote::addToToc(): Stupid Bug fix causing crash on Mac.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 14 Feb 2008 15:29:22 +0000 (15:29 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 14 Feb 2008 15:29:22 +0000 (15:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23004 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetNote.cpp

index e07d32e0357fbf748b9729d20ac783e116ba390a..babe2bf651b39c3887463f27b1f2eaafcf34bc7d 100644 (file)
@@ -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));
 }