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:
Lars Gullik Bjønnes 2000-05-21 20:41:06 +00:00
parent 586beb3a79
commit 884a2d31f1
2 changed files with 10 additions and 4 deletions

View File

@ -294,7 +294,7 @@ public:
string getBibkeyList(char delim = '|');
///
struct TocItem {
LyXParagraph *par;
LyXParagraph * par;
int depth;
string str;
};

View File

@ -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];