]> git.lyx.org Git - lyx.git/blobdiff - src/RowPainter.cpp
Russian layouttranslations reviewed by Yuriy, Dec 13 2017.
[lyx.git] / src / RowPainter.cpp
index 2dc76664a91f099ab075e656934f72cf47b4a916..6fbc783b358c47c50a1ecbe9cd5b3a4ff1d92aef 100644 (file)
@@ -196,7 +196,6 @@ void RowPainter::paintMisspelledMark(Row::Element const & e) const
                        continue;
                }
 
-               FontMetrics const & fm = theFontMetrics(e.font);
                int x1 = fm.pos2x(e.str, range.first - e.pos,
                                  e.isRTL(), e.extra);
                int x2 = fm.pos2x(e.str, min(range.last - e.pos + 1,
@@ -247,18 +246,6 @@ void RowPainter::paintChange(Row::Element const & e) const
 
 void RowPainter::paintChangeBar() const
 {
-       pos_type const start = row_.pos();
-       pos_type end = row_.endpos();
-
-       if (par_.size() == end) {
-               // this is the last row of the paragraph;
-               // thus, we must also consider the imaginary end-of-par character
-               end++;
-       }
-
-       if (start == end || !par_.isChanged(start, end))
-               return;
-
        int const height = tm_.isLastRow(row_)
                ? row_.ascent()
                : row_.height();