getInnerText()

This commit is contained in:
Guillaume Munch 2016-05-03 21:09:15 +01:00
parent 5bfdaef980
commit 23edd3a1a2
2 changed files with 2 additions and 6 deletions

View File

@ -707,9 +707,7 @@ Change const BufferView::getCurrentChange() const
DocIterator dit = d->cursor_.selectionBegin();
// The selected content might have been changed (see #7685)
while (dit.inMathed())
// Find enclosing text cursor
dit.pop_back();
dit = dit.getInnerText();
return dit.paragraph().lookupChange(dit.pos());
}

View File

@ -750,9 +750,7 @@ void InsetMathHull::preparePreview(DocIterator const & pos,
macro_preamble.append(*it);
// set the font series and size for this snippet
DocIterator dit = pos;
while (dit.inMathed())
dit.pop_back();
DocIterator dit = pos.getInnerText();
Paragraph const & par = dit.paragraph();
Font font = par.getFontSettings(buffer->params(), dit.pos());
font.fontInfo().realize(par.layout().font);