]> git.lyx.org Git - features.git/blobdiff - src/rowpainter.cpp
Transfer Paragraph::hfillExpansion() to ParagraphMetrics. This also reduce the depend...
[features.git] / src / rowpainter.cpp
index cf0f98f9e14e5237064e779fd80d20fd890cf3d5..d8b05eb1c1e0d9819050521e974c889fb8a63fd4 100644 (file)
@@ -55,7 +55,7 @@ using frontend::FontMetrics;
 
 RowPainter::RowPainter(PainterInfo & pi,
        Text const & text, pit_type pit, Row const & row, Bidi & bidi, int x, int y)
-       : pi_(pi_), text_(text),
+       : pi_(pi), text_(text),
          text_metrics_(pi_.base.bv->textMetrics(&text)),
          pars_(text.paragraphs()),
          row_(row), pit_(pit), par_(text.paragraphs()[pit]),
@@ -96,7 +96,7 @@ void RowPainter::paintHfill(pos_type const pos, pos_type const body_pos)
 
        pi_.pain.line(int(x_), y1, int(x_), y0, Color::added_space);
 
-       if (par_.hfillExpansion(row_, pos)) {
+       if (pm_.hfillExpansion(row_, pos)) {
                int const y2 = (y0 + y1) / 2;
 
                if (pos >= body_pos) {