diff options
author | Kurt Jung <kurt.w.jung@code.google.com> | 2013-09-10 16:45:03 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@code.google.com> | 2013-09-10 16:45:03 -0400 |
commit | 601e5148b50411908b7dc6163f560f7cc62622e1 (patch) | |
tree | 1cbbac56ce0d2f6503032857d5a7d86c42a841d1 | |
parent | 6d6d5abb32803aceb586b0d0b1b034ddda62bfb8 (diff) |
Bruno Michel identified and fixed a problem with non-cp1252 encodings, specifically in the way differences with cp1252 are stored and accessed. Thanks, Bruno.
-rw-r--r-- | fpdf.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1216,8 +1216,8 @@ func (f *Fpdf) AddFont(familyStr, styleStr, fileStr string) { } } if n < 0 { - n = len(f.diffs) + 1 - f.diffs[n] = info.Diff + f.diffs = append(f.diffs, info.Diff) + n = len(f.diffs) } info.DiffN = n } |