mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Revert r31219.
This is wrong and should have been reverted long ago and since r31340 it even doesn't have any function because addToToc isn't called for an internal buffer anymore. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31355 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a13b633c0f
commit
ffb8c7ca09
@ -25,7 +25,6 @@
|
||||
#include "support/docstream.h"
|
||||
#include "support/gettext.h"
|
||||
#include "support/lstrings.h"
|
||||
#include "support/FileName.h"
|
||||
|
||||
using namespace lyx::support;
|
||||
using namespace std;
|
||||
@ -143,19 +142,9 @@ void InsetRef::updateLabels(ParIterator const & it)
|
||||
}
|
||||
|
||||
|
||||
/** \note
|
||||
** If inset belongs to an Embedded WorkArea's Buffer, ref is likely
|
||||
** to point to some documentBuffer's label. Don't know how to
|
||||
** retrieve the corresponding documentBuffer (so as to check if the
|
||||
** label exists or not), so the "BROKEN:" indication is disabled in
|
||||
** Embedded WorkArea(s).
|
||||
**/
|
||||
void InsetRef::addToToc(DocIterator const & cpit)
|
||||
{
|
||||
docstring const & label = getParam("reference");
|
||||
if (buffer().fileName().extension() == "internal")
|
||||
return;
|
||||
|
||||
if (buffer().insetLabel(label))
|
||||
// This InsetRef has already been taken care of in InsetLabel::addToToc().
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user