diff options
author | Johannes Schickel | 2013-11-23 23:56:54 +0100 |
---|---|---|
committer | Johannes Schickel | 2013-11-24 00:15:48 +0100 |
commit | bb4a730a88f69917b02abcff943f7cdf2a9de8c7 (patch) | |
tree | 87b7c1d327fd2293b5d2fff2440e45759f518bae | |
parent | aaad08c9fe25f00813ddd19458a9c98d06e723cf (diff) | |
download | scummvm-rg350-bb4a730a88f69917b02abcff943f7cdf2a9de8c7.tar.gz scummvm-rg350-bb4a730a88f69917b02abcff943f7cdf2a9de8c7.tar.bz2 scummvm-rg350-bb4a730a88f69917b02abcff943f7cdf2a9de8c7.zip |
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.
-rw-r--r-- | gui/widgets/editable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |