Hello,
why do we need the buffer parameters if we want to move some characters
from one paragraph to another?
I see that it has to do with font settings but isn't there a simpler way?
The fact that we need the buffer parameters for moving item means that I
have to pass them through all accept/rejectChanges methods :-(
Michael
static bool moveItem(Paragraph & fromPar, pos_type fromPos,
Paragraph & toPar, pos_type toPos, BufferParams const & params)
{
...
LyXFont const tmpFont = fromPar.getFontSettings(params, fromPos);
if (tmpChar == Paragraph::META_INSET) {
...
toPar.insertInset(toPos, tmpInset, tmpFont, tmpChange);
} else {
...
toPar.insertChar(toPos, tmpChar, tmpFont, tmpChange);
}
...
}