diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc index 2e3ed7f8..8384c459 100644 --- a/src/FbTk/TextBox.cc +++ b/src/FbTk/TextBox.cc @@ -250,7 +250,7 @@ void TextBox::clear() { // draw cursor position - drawLine(gc(), cursor_pos, center_pos, cursor_pos, center_pos - font().height()); + drawLine(gc(), cursor_pos, height()/2 + font().ascent()/2, cursor_pos, height()/2 - font().ascent()/2); } void TextBox::moveResize(int x, int y,