Permalink
Browse files

fixed textarea lists skipping the final entry

Signed-off-by: Jaka Kranjc <lynxlupodian@users.sourceforge.net>
  • Loading branch information...
1 parent 335883f commit c9f06d214a337037ee9e8645896cf92192ee40dd khelban12 committed with lynxlynxlynx Aug 3, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit c9f06d2

Please sign in to comment.