]> git.lyx.org Git - features.git/commitdiff
Remove duplicate variable
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 14 Dec 2017 15:03:30 +0000 (16:03 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 14 Dec 2017 15:03:30 +0000 (16:03 +0100)
Fixes bug #10922

src/RowPainter.cpp

index 85f450edc6f7f7718d3025056810c2a410831e8f..6fbc783b358c47c50a1ecbe9cd5b3a4ff1d92aef 100644 (file)
@@ -196,7 +196,6 @@ void RowPainter::paintMisspelledMark(Row::Element const & e) const
                        continue;
                }
 
                        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,
                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,