]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/TextPainter.cpp
Substack should not be allowed to change columns
[lyx.git] / src / mathed / TextPainter.cpp
index 6811c40af25d8c1872f1ba40f82f7c7e9cb62f8f..fb7e7ff3a572b7103fa8087837bf3f79a5c728c3 100644 (file)
@@ -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 <ostream>
-
 
 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;
 }