diff options
author | Daniel Hirt <daniel.hirt@samsung.com> | 2014-11-05 11:02:46 +0200 |
---|---|---|
committer | Daniel Hirt <daniel.hirt@samsung.com> | 2014-11-09 17:41:18 +0200 |
commit | f7648528d3a7d89d64a6cd0ba7c41d77f4a7e68e (patch) | |
tree | 6cc91f727c5bf58706dfd9000c939a3552c2bb5d | |
parent | 4d26e767c467b9a76bde6803092aeeb3ed58f63d (diff) | |
download | efl-f7648528d3a7d89d64a6cd0ba7c41d77f4a7e68e.tar.gz |
more fixes
-rw-r--r-- | src/lib/evas/common/evas_text_utils.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/evas/common/evas_text_utils.c b/src/lib/evas/common/evas_text_utils.c index 30bf602106..63df759c30 100644 --- a/src/lib/evas/common/evas_text_utils.c +++ b/src/lib/evas/common/evas_text_utils.c @@ -366,14 +366,19 @@ evas_common_text_props_hard_split(Evas_Text_Props *props_left, Evas_Text_Props * /* Fields associated with glyph/ot info were updated in the above call */ if (props_right) { + int clust_idx_old; props_mid->info->refcount--; /* deattaching right_props */ props_right->changed = EINA_TRUE; + props_right->text_offset = 0; if (props_mid->bidi_dir == EVAS_BIDI_DIRECTION_RTL) { - props_right->text_offset = 0; - int clust_idx_old = props_right->info->ot[props_right->info->len - 1].source_cluster; - _rectify_cluster_indices(props_right, clust_idx_old); + clust_idx_old = props_right->info->ot[props_right->info->len - 1].source_cluster; } + else + { + clust_idx_old = props_right->info->ot[0].source_cluster; + } + _rectify_cluster_indices(props_right, clust_idx_old); } if (props_left) |