summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2019-06-23 20:47:03 -0400
committerKurt <kurt.w.jung@gmail.com>2019-06-23 20:47:03 -0400
commitf92bdc0bcf650f019ee76c1298a4d04c8237cba0 (patch)
tree62a6870b15a0fb21491a245a4edd70ca01605d18 /fpdf.go
parentd4a9e3b5b9a76b39aef6bdc6a24c428e35fb0aa5 (diff)
parentd1e43ef2ff098f4edb261d907bc6248e99c048e9 (diff)
Merge branch 'tmcli-master'
Diffstat (limited to 'fpdf.go')
-rw-r--r--fpdf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdf.go b/fpdf.go
index 4f562ae..0b2aa25 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -2537,7 +2537,7 @@ func (f *Fpdf) MultiCell(w, h float64, txtStr, borderStr, alignStr string, fill
if f.isCurrentUTF8 {
c = []rune(s)[i]
} else {
- c = rune([]byte(s)[i])
+ c = rune(byte(s[i]))
}
if c == '\n' {
// Explicit line break
@@ -2674,7 +2674,7 @@ func (f *Fpdf) write(h float64, txtStr string, link int, linkStr string) {
if f.isCurrentUTF8 {
c = []rune(s)[i]
} else {
- c = rune([]byte(s)[i])
+ c = rune(byte(s[i]))
}
if c == '\n' {
// Explicit line break