GUI: Fix out-of-bounds check in EditableWidget::drawCaret.

The line "y + editRect.height() + 2" is not included in drawing anymore. Thus
it is allowed to equal EditableWidget::_h.
This commit is contained in:
Johannes Schickel 2013-11-23 23:56:54 +01:00
parent aaad08c9fe
commit bb4a730a88

View File

@ -263,7 +263,7 @@ void EditableWidget::drawCaret(bool erase) {
x += getCaretOffset();
if (y < 0 || y + editRect.height() - 2 >= _h)
if (y < 0 || y + editRect.height() - 2 > _h)
return;
x += getAbsX();