]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetNote.cpp
InsetNote::addToToc(): Stupid Bug fix causing crash on Mac.
[features.git] / 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));
 }