mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-18 20:17:36 +00:00
getInnerText()
This commit is contained in:
parent
5bfdaef980
commit
23edd3a1a2
@ -707,9 +707,7 @@ Change const BufferView::getCurrentChange() const
|
|||||||
|
|
||||||
DocIterator dit = d->cursor_.selectionBegin();
|
DocIterator dit = d->cursor_.selectionBegin();
|
||||||
// The selected content might have been changed (see #7685)
|
// The selected content might have been changed (see #7685)
|
||||||
while (dit.inMathed())
|
dit = dit.getInnerText();
|
||||||
// Find enclosing text cursor
|
|
||||||
dit.pop_back();
|
|
||||||
return dit.paragraph().lookupChange(dit.pos());
|
return dit.paragraph().lookupChange(dit.pos());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -750,9 +750,7 @@ void InsetMathHull::preparePreview(DocIterator const & pos,
|
|||||||
macro_preamble.append(*it);
|
macro_preamble.append(*it);
|
||||||
|
|
||||||
// set the font series and size for this snippet
|
// set the font series and size for this snippet
|
||||||
DocIterator dit = pos;
|
DocIterator dit = pos.getInnerText();
|
||||||
while (dit.inMathed())
|
|
||||||
dit.pop_back();
|
|
||||||
Paragraph const & par = dit.paragraph();
|
Paragraph const & par = dit.paragraph();
|
||||||
Font font = par.getFontSettings(buffer->params(), dit.pos());
|
Font font = par.getFontSettings(buffer->params(), dit.pos());
|
||||||
font.fontInfo().realize(par.layout().font);
|
font.fontInfo().realize(par.layout().font);
|
||||||
|
Loading…
Reference in New Issue
Block a user