mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
two fixes (posted to list)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5594 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7f67ec6200
commit
125a79c569
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -62,6 +62,14 @@ void breakParagraph(BufferParams const & bparams,
|
||||
|
||||
// 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;
|
||||
|
@ -2392,7 +2392,8 @@ LyXText::selectNextWordToSpellcheck(BufferView * bview, float & value) const
|
||||
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
|
||||
|
10
src/toc.C
10
src/toc.C
@ -28,6 +28,7 @@
|
||||
#include "insets/insetfloat.h"
|
||||
#include "insets/insetwrap.h"
|
||||
#include "debug.h"
|
||||
#include "iterators.h"
|
||||
|
||||
using std::vector;
|
||||
using std::max;
|
||||
@ -72,11 +73,14 @@ TocList const getTocList(Buffer const * buf)
|
||||
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
|
||||
@ -106,8 +110,6 @@ TocList const getTocList(Buffer const * buf)
|
||||
il->addToToc(toclist, buf);
|
||||
}
|
||||
}
|
||||
|
||||
par = par->next();
|
||||
}
|
||||
return toclist;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user