---
 recipes/efl1/edje/fix-edje-chop-x.patch |   24 ++++++++++++++++++++++++
 recipes/efl1/edje_svn.bb                |    4 +++-
 2 files changed, 27 insertions(+), 1 deletions(-)
 create mode 100644 recipes/efl1/edje/fix-edje-chop-x.patch

diff --git a/recipes/efl1/edje/fix-edje-chop-x.patch 
b/recipes/efl1/edje/fix-edje-chop-x.patch
new file mode 100644
index 0000000..91ffd88
--- /dev/null
+++ b/recipes/efl1/edje/fix-edje-chop-x.patch
@@ -0,0 +1,24 @@
+Index: edje/src/lib/edje_text.c
+===================================================================
+--- edje/src/lib/edje_text.c   (revision 43860)
++++ edje/src/lib/edje_text.c   (working copy)
+@@ -135,13 +135,13 @@
+    if (tw > sw)
+      {
+       if (params->type.text.elipsis != 0.0)
+-        c1 = evas_object_text_char_coords_get(ep->object,
+-              -p + l, th / 2,
+-              NULL, NULL, NULL, NULL);
++          /* should be the last in text! not the rightmost */
++          c1 = evas_object_text_last_up_to_pos(ep->object,
++                -p + l, th / 2);
+       if (params->type.text.elipsis != 1.0)
+-        c2 = evas_object_text_char_coords_get(ep->object,
+-              -p + sw - r, th / 2,
+-              NULL, NULL, NULL, NULL);
++          /* should be the last in text! not the rightmost */
++          c2 = evas_object_text_last_up_to_pos(ep->object,
++                -p + sw - r, th / 2);
+       if ((c1 < 0) && (c2 < 0))
+         {
+            c1 = 0;
diff --git a/recipes/efl1/edje_svn.bb b/recipes/efl1/edje_svn.bb
index a4453fc..aaf10a1 100644
--- a/recipes/efl1/edje_svn.bb
+++ b/recipes/efl1/edje_svn.bb
@@ -2,10 +2,12 @@ DESCRIPTION = "Edje is the Enlightenment graphical design & 
layout library"
 DEPENDS = "lua5.1 eet evas ecore embryo edje-native"
 LICENSE = "MIT BSD"
 PV = "0.9.92.060+svnr${SRCPV}"
-PR = "r4"
+PR = "r5"
 
 inherit efl
 
+SRC_URI_append_shr = " file://fix-edje-chop-x.patch;patch=1 "
+
 # The new lua stuff is a bit broken...
 do_configure_append() {
        for i in $(find "${S}" -name "Makefile") ; do
-- 
1.6.5.3

_______________________________________________
Shr-devel mailing list
Shr-devel@lists.shr-project.org
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to