I was facing a problem with edje text.
When resizing the canvas to fit exactly the text size, the text simply
disappeared.
The attached diff fixes that issue. But since I'm not used with this code, I
would
like to know if there is no side effect with this change.
Adriano
Index: src/lib/edje_text.c
===================================================================
RCS file: /var/cvs/e/e17/libs/edje/src/lib/edje_text.c,v
retrieving revision 1.70
diff -u -p -r1.70 edje_text.c
--- src/lib/edje_text.c 24 Mar 2008 08:22:01 -0000 1.70
+++ src/lib/edje_text.c 26 Mar 2008 20:05:19 -0000
@@ -192,6 +192,9 @@ _edje_text_fit_x(Edje *ed, Edje_Real_Par
if (!((c1 >= 0 || c2 >= 0) && (tw > sw)))
return text;
+ if (c1 == 0 && c2 == 0)
+ return text;
+
orig_len = strlen(text);
/* don't overflow orig_len by adding extra
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel