+2002-11-07 John Levon <levon@movementarian.org>
+
+ * text.C: fix progress value for spellchecker
+
+ * toc.C: fix navigate menu for insetwrap inside minipage
+
+ * paragraph_funcs.C: added FIXME for suspect code
+
2002-11-07 John Levon <levon@movementarian.org>
* BufferView_pimpl.C: fix redrawing of insets
// copy everything behind the break-position
// to the new paragraph
+
+#ifdef WITH_WARNINGS
+#warning this seems wrong
+#endif
+ /* FIXME: if !keepempty, empty() == true, then we reach
+ * here with size() == 0. So pos_end becomes - 1. Why
+ * doesn't this cause problems ???
+ */
pos_type pos_end = par->size() - 1;
pos_type i = pos;
pos_type j = pos;
if (the_locking_inset) {
WordLangTuple word = the_locking_inset->selectNextWordToSpellcheck(bview, value);
if (!word.word().empty()) {
- value += float(cursor.y())/float(height);
+ value += float(cursor.y());
+ value /= float(height);
return word;
}
// we have to go on checking so move cursor to the next char
#include "insets/insetfloat.h"
#include "insets/insetwrap.h"
#include "debug.h"
+#include "iterators.h"
using std::vector;
using std::max;
TocList toclist;
if (!buf)
return toclist;
- Paragraph * par = &*(buf->paragraphs.begin());
LyXTextClass const & textclass = buf->params.getLyXTextClass();
- while (par) {
+ ParIterator pit = buf->par_iterator_begin();
+ ParIterator end = buf->par_iterator_end();
+ for (; pit != end; ++pit) {
+ Paragraph * par = *pit;
+
#ifdef WITH_WARNINGS
#warning bogus type (Lgb)
#endif
il->addToToc(toclist, buf);
}
}
-
- par = par->next();
}
return toclist;
}