summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas
diff options
context:
space:
mode:
authorThiep Ha <thiep.ha@samsung.com>2014-11-26 10:18:49 +0200
committerDaniel Hirt <daniel.hirt@samsung.com>2014-11-26 10:18:49 +0200
commite9a40835f21cfd4a46da388158aca6b0cda650a7 (patch)
treea98fe99463db24a145a931baed94851bd43c8c0b /src/lib/evas/canvas
parent795f9d6ce32c1e52b8f0b5b729ce391b1f32103d (diff)
textblock: correct text position for RTL text with margins
Summary: If a RTL textblock has right margin, text is wrongly placed (right margin is moved to left). This patch fixes this issue. Test cases are also added to test text position with margins. @fix Reviewers: tasn, herdsman Subscribers: woohyun, cedric Differential Revision: https://phab.enlightenment.org/D1691
Diffstat (limited to 'src/lib/evas/canvas')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 9ae9f0986d..9b9a9eea58 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -3397,8 +3397,8 @@ loop_advance:
3397 /* c->o->style_pad.r is already included in the line width, so it's 3397 /* c->o->style_pad.r is already included in the line width, so it's
3398 * not used in this calculation. . */ 3398 * not used in this calculation. . */
3399 c->ln->x = c->marginl + c->o->style_pad.l + 3399 c->ln->x = c->marginl + c->o->style_pad.l +
3400 ((c->w - c->ln->w - 3400 ((c->w - c->ln->w - c->o->style_pad.l -
3401 c->o->style_pad.l - c->marginl) * _layout_line_align_get(c)); 3401 c->marginl - c->marginr) * _layout_line_align_get(c));
3402 } 3402 }
3403 else 3403 else
3404 { 3404 {