Alfredo Braunstein wrote:
[EMAIL PROTECTED] wrote:
- ParagraphMetrics const & pm1 = par_metrics_[beg.pit()];
- ParagraphMetrics const & pm2 = par_metrics_[end.pit()];
+ ParagraphMetrics const & pm1 = parMetrics(beg.pit());
+ ParagraphMetrics const & pm2 = parMetrics(end.pit());
Row const & row1 = pm1.getRow(beg.pos(), beg.boundary());
Row const & row2 = pm2.getRow(end.pos(), end.boundary());
I think that a better fix would be avoid trying to get row1 when CUR_ABOVE
and row2 when CUR_BELOW, as they are not needed anyway...
Yes, this was just a short-term fix. The whole method needs to be
cleaned up (see FIXME). You are very welcome to do it ;-)
Abdel.