summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
authorCallum Li <callum.li@trademe.co.nz>2019-06-10 13:52:42 +1200
committerCallum Li <callum.li@trademe.co.nz>2019-06-10 15:00:04 +1200
commit25a362ddc90abe3b4786965ac8b38b143694519d (patch)
tree37f48818b63a9180c59bfbf85aad2cebe1bb4a65 /fpdf.go
parent8060f8371088d63b5935a6eeb617328705387ace (diff)
Improve write performance
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 3e4188c..e4b4261 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