/// FIXME: replace Cursor with DocIterator.
docstring getPossibleLabel(DocIterator const & cur) const;
/// is this paragraph right-to-left?
- bool isRTL(Paragraph const & par) const;
+ bool isRTL(pit_type pit) const;
///
bool checkAndActivateInset(Cursor & cur, bool front);
}
-bool Text::isRTL(Paragraph const & par) const
+bool Text::isRTL(pit_type const pit) const
{
Buffer const & buffer = owner_->buffer();
- return par.isRTL(buffer.params());
+ return pars_[pit].isRTL(buffer.params());
}
pos_type const end = par.size();
pos_type const pos = row.pos();
pos_type const body_pos = par.beginOfBody();
- bool const is_rtl = text_->isRTL(par);
+ bool const is_rtl = text_->isRTL(row.pit());
bool need_new_row = false;
row.clear();