]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.C
refrain from computing width in setHeightOfRow as this happens already
[lyx.git] / src / paragraph.C
index 253a617e706b6fd1adebe28155fa42f6def03c15..8c640b6d6277b22f9e39b896d7357106507d54e6 100644 (file)
@@ -1420,3 +1420,15 @@ bool Paragraph::allowEmpty() const
                return pimpl_->inset_owner->owner()->lyxCode() == InsetOld::ERT_CODE;
        return false;
 }
+
+
+RowList::iterator Paragraph::getRow(pos_type pos)
+{
+       RowList::iterator rit = rows.end();
+       RowList::iterator const begin = rows.begin();
+
+       for (--rit; rit != begin && rit->pos() > pos; --rit)
+               ;
+
+       return rit;
+}