[Bf-blender-cvs] [ac9eaf9] master: Fix for right aligned text ignoring xoffset
Campbell Barton
noreply at git.blender.org
Thu May 15 09:11:31 CEST 2014
Commit: ac9eaf9c91cf460d3530b09615c911ed40856f12
Author: Campbell Barton
Date: Thu May 15 17:09:46 2014 +1000
https://developer.blender.org/rBac9eaf9c91cf460d3530b09615c911ed40856f12
Fix for right aligned text ignoring xoffset
===================================================================
M source/blender/blenkernel/intern/font.c
===================================================================
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c
index 637ae03..35328a8 100644
--- a/source/blender/blenkernel/intern/font.c
+++ b/source/blender/blenkernel/intern/font.c
@@ -808,7 +808,7 @@ makebreak:
ct = chartransdata;
if (cu->spacemode == CU_RIGHT) {
- for (i = 0; i < lnr; i++) linedata[i] = linedata3[i] - linedata[i];
+ for (i = 0; i < lnr; i++) linedata[i] = (linedata3[i] - linedata[i]) + cu->xof;
for (i = 0; i <= slen; i++) {
ct->xof += linedata[ct->linenr];
ct++;
More information about the Bf-blender-cvs
mailing list