Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

PrintFromLine: should be using the converted dobule byte string

  • Loading branch information...
commit 290709af58af70a783a72d44dd43df227fd24f12 1 parent 8541ff2
@bradallred bradallred authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 gemrb/core/Font.cpp
View
4 gemrb/core/Font.cpp
@@ -94,10 +94,10 @@ void Font::PrintFromLine(int startrow, Region rgn, const unsigned char* string,
capital=1;
enablecap=true;
initials_rows = 1 + ((initials->maxHeight - 1) / maxHeight); // ceiling
- currCap = string[0];
+ currCap = tmp[0];
if ((startrow > 0 && initials_rows > 0) || (len > 0 && isspace(currCap))) { // we need to look back to get the cap
while(isspace(currCap) && num_empty_rows < len){//we cant cap whiteSpace so keep looking
- currCap = string[++num_empty_rows];
+ currCap = tmp[++num_empty_rows];
// WARNING: this assumes all preceeding whiteSpace is an empty line
}
last_initial_row = startrow - 1; // always the row before current since this cannot be the first row
Please sign in to comment.
Something went wrong with that request. Please try again.