mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
reverse Toc searching: use DocIterator instead of ParconsIterator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24800 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6fd7c7c973
commit
fb31797d13
@ -16,11 +16,11 @@
|
||||
#include "Buffer.h"
|
||||
#include "BufferParams.h"
|
||||
#include "BufferView.h"
|
||||
#include "DocIterator.h"
|
||||
#include "Cursor.h"
|
||||
#include "FloatList.h"
|
||||
#include "FuncRequest.h"
|
||||
#include "LyXFunc.h"
|
||||
#include "ParIterator.h"
|
||||
#include "TextClass.h"
|
||||
|
||||
#include "support/convert.h"
|
||||
@ -204,9 +204,9 @@ QModelIndex TocModels::currentIndex(int type) const
|
||||
if (type < 0 || !bv_)
|
||||
return QModelIndex();
|
||||
|
||||
ParConstIterator it(bv_->cursor());
|
||||
return models_[type]->modelIndex(bv_->buffer().masterBuffer()->
|
||||
tocBackend().item(fromqstr(types_[type]), it));
|
||||
TocIterator const it = bv_->buffer().masterBuffer()->tocBackend().item(
|
||||
fromqstr(types_[type]), bv_->cursor());
|
||||
return models_[type]->modelIndex(it);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user