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
This commit is contained in:
Abdelrazak Younes 2008-02-14 15:29:22 +00:00
parent 370afc3567
commit 1a4891dec0

View 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));
}