summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
Diffstat (limited to 'fpdf.go')
-rw-r--r--fpdf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdf.go b/fpdf.go
index 7294df7..bd4aa4e 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -2441,7 +2441,7 @@ func (f *Fpdf) WriteAligned(width, lineHeight float64, textStr, alignStr string)
f.Write(lineHeight, lineStr)
f.SetLeftMargin(lMargin)
case "R":
- f.SetLeftMargin(lMargin + (width - lineWidth) - rMargin)
+ f.SetLeftMargin(lMargin + (width - lineWidth) - 2.01*f.cMargin)
f.Write(lineHeight, lineStr)
f.SetLeftMargin(lMargin)
default: