Evas Textblock : Fix obstacles & word overlap
authorabdulleh Ghujeh <a.ghujeh@samsung.com>
Fri, 3 Jan 2020 07:45:26 +0000 (16:45 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 5 Jan 2020 21:54:53 +0000 (06:54 +0900)
Summary:
Revert part of old commit which caused wrong behavior in textblock with obstacles, we should use obstacle x pos.
There is no comments about why this was changed.

{F3821294}

Old commit is :
Aug 23, 2017 e63be982d904a01ade5aced9ef9924a78d155b8a

related to D10955

Test Plan: Run Textblock Obstacle example

Reviewers: ali.alzyod, woohyun, segfaultxavi

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11005

src/lib/evas/canvas/evas_object_textblock.c

index 884e103..c0173ca 100644 (file)
@@ -6819,7 +6819,7 @@ _layout_par(Ctxt *c)
                        Evas_Coord cw = c->w;
                        if (obs)
                          {
-                            cw -= obs->w;
+                            cw = obs->x;
                          }
                        if (it->format->wrap_word)
                           wrap = _layout_get_wordwrap(c, it->format, it,