mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
more small fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@759 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
586beb3a79
commit
884a2d31f1
@ -294,7 +294,7 @@ public:
|
||||
string getBibkeyList(char delim = '|');
|
||||
///
|
||||
struct TocItem {
|
||||
LyXParagraph *par;
|
||||
LyXParagraph * par;
|
||||
int depth;
|
||||
string str;
|
||||
};
|
||||
|
12
src/lyx_cb.C
12
src/lyx_cb.C
@ -3151,9 +3151,15 @@ void TocUpdateCB(FL_OBJECT *, long)
|
||||
int type = fl_get_choice(fd_form_toc->toctype)-1;
|
||||
//if (toclist == tmp[type])
|
||||
// return;
|
||||
if (toclist.size() == tmp[type].size()
|
||||
&& equal(toclist.begin(), toclist.end(), tmp[type].begin()))
|
||||
return;
|
||||
if (toclist.size() == tmp[type].size()) {
|
||||
// Check if all elements are the same.
|
||||
int i = 0;
|
||||
for (; i < toclist.size(); ++i) {
|
||||
if (toclist[i] != tmp[type][i])
|
||||
break;
|
||||
}
|
||||
if (i >= toclist.size()) return;
|
||||
}
|
||||
|
||||
toclist = tmp[type];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user