X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FTextPainter.cpp;h=fb7e7ff3a572b7103fa8087837bf3f79a5c728c3;hb=593bfe248a15be99bfce7e12cde6c59c92951f5f;hp=6811c40af25d8c1872f1ba40f82f7c7e9cb62f8f;hpb=688c186614a50a82b97733cb401e046ea8207352;p=lyx.git diff --git a/src/mathed/TextPainter.cpp b/src/mathed/TextPainter.cpp index 6811c40af2..fb7e7ff3a5 100644 --- a/src/mathed/TextPainter.cpp +++ b/src/mathed/TextPainter.cpp @@ -3,7 +3,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -12,8 +12,6 @@ #include "TextPainter.h" -#include - namespace lyx { @@ -44,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; }