Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed textarea lists skipping the final entry

Signed-off-by: Jaka Kranjc <lynxlupodian@users.sourceforge.net>
  • Loading branch information...
commit c9f06d214a337037ee9e8645896cf92192ee40dd 1 parent 335883f
khelban12 authored lynxlynxlynx committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 gemrb/core/GUI/TextArea.cpp
View
4 gemrb/core/GUI/TextArea.cpp
@@ -204,7 +204,7 @@ void TextArea::DrawInternal(Region& clip)
int sr = startrow;
unsigned int i;
int yl;
- for (i = 0; i < linesize; i++) {
+ for (i = 0; i <= linesize; i++) {
if (rc + lrows[i] <= sr) {
rc += lrows[i];
continue;
@@ -225,7 +225,7 @@ void TextArea::DrawInternal(Region& clip)
clip.h-=yl;
break;
}
- for (i++; i < linesize; i++) {
+ for (i++; i <= linesize; i++) {
Palette* pal = NULL;
if (seltext == (int) i)
pal = selected;
Please sign in to comment.
Something went wrong with that request. Please try again.