mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
DocIterator::innerText(): reuse innerTextSlice()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30944 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1919580310
commit
de38a9ed5f
@ -249,12 +249,7 @@ MathData & DocIterator::cell() const
|
||||
Text * DocIterator::innerText() const
|
||||
{
|
||||
LASSERT(!empty(), /**/);
|
||||
// go up until first non-0 text is hit
|
||||
// (innermost text is 0 in mathed)
|
||||
for (int i = depth() - 1; i >= 0; --i)
|
||||
if (slices_[i].text())
|
||||
return slices_[i].text();
|
||||
return 0;
|
||||
return innerTextSlice().text();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user