mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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:
parent
370afc3567
commit
1a4891dec0
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user