X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FTextPainter.cpp;h=fb7e7ff3a572b7103fa8087837bf3f79a5c728c3;hb=HEAD;hp=7ff8368d6b0eacdf7224eda5d99db8e3f0ac29a5;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/mathed/TextPainter.cpp b/src/mathed/TextPainter.cpp index 7ff8368d6b..fb7e7ff3a5 100644 --- a/src/mathed/TextPainter.cpp +++ b/src/mathed/TextPainter.cpp @@ -42,16 +42,16 @@ void TextPainter::draw(int x, int y, char_type const * str) } -void TextPainter::horizontalLine(int x, int y, int n, char_type c) +void TextPainter::horizontalLine(int x, int y, int len, char_type c) { - for (int i = 0; i < n && i + x < xmax_; ++i) + for (int i = 0; i < len && i + x < xmax_; ++i) at(x + i, y) = c; } -void TextPainter::verticalLine(int x, int y, int n, char_type c) +void TextPainter::verticalLine(int x, int y, int len, char_type c) { - for (int i = 0; i < n && i + y < ymax_; ++i) + for (int i = 0; i < len && i + y < ymax_; ++i) at(x, y + i) = c; }