From bb4a730a88f69917b02abcff943f7cdf2a9de8c7 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 23 Nov 2013 23:56:54 +0100 Subject: 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. --- gui/widgets/editable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/widgets/editable.cpp b/gui/widgets/editable.cpp index c3354e53ea..112995424f 100644 --- a/gui/widgets/editable.cpp +++ b/gui/widgets/editable.cpp @@ -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(); -- cgit v1.2.3